-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make config properties script Python3 compatible #910
base: master
Are you sure you want to change the base?
Conversation
The CI/CD pipeline fails because on kvm1 and kvm2 python3 is missing:
|
@@ -66,16 +66,16 @@ def read_guest_file(path, write_count): | |||
|
|||
def get_key(key_file): | |||
if not os.path.exists(key_file): | |||
print("ERROR: ssh public key not found on host at {0}".format(key_file)) | |||
print "ERROR: Something went wrong, exiting." | |||
print(("ERROR: ssh public key not found on host at {0}".format(key_file))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the double round brackets be removed?
sys.exit(1) | ||
|
||
try: | ||
with open(key_file, "r") as f: | ||
pub_key = f.read() | ||
except IOError as e: | ||
print("ERROR: unable to open {0} - {1}".format(key_file, e.strerror)) | ||
print "ERROR: Something went wrong, exiting." | ||
print(("ERROR: unable to open {0} - {1}".format(key_file, e.strerror))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the double round brackets be removed?
go build |
No description provided.