Skip to content

Commit

Permalink
fixing the print statemetns
Browse files Browse the repository at this point in the history
  • Loading branch information
imabedalghafer committed Nov 9, 2022
1 parent 82755ec commit cd4d90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster-checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,13 +973,13 @@ def constrainsChecker(root_xml, cluster_type):

if __name__ == '__main__':
VERSION = '1.7.1'
print(f'you are running on version {VERSION}')
print(f'Tool version is {VERSION}')
print('Checking if the this is the latest version')
URL = 'https://raw.githubusercontent.com/imabedalghafer/cluster-checker/master/version.txt'
re = requests.get(URL)
logger.info(re.text)
if re.text == VERSION:
print('Using the latest version, no further action needed')
print('Using the latest version, no further action needed, proceeding with execution')
else:
print(f'The latest version available is {re.text}, updating ..')
URL_1 = 'https://raw.githubusercontent.com/imabedalghafer/cluster-checker/master/cluster-checker.py'
Expand Down

0 comments on commit cd4d90f

Please sign in to comment.