Skip to content

Make config properties script Python3 compatible#910

Open
remibergsma wants to merge 1 commit intomasterfrom
config_properties_python3
Open

Make config properties script Python3 compatible#910
remibergsma wants to merge 1 commit intomasterfrom
config_properties_python3

Conversation

@remibergsma
Copy link
Copy Markdown
Member

No description provided.

@sanderv32
Copy link
Copy Markdown
Contributor

The CI/CD pipeline fails because on kvm1 and kvm2 python3 is missing:

-bash: /opt/cosmic/agent/./scripts/vm/hypervisor/kvm/send_config_properties_to_systemvm.py: /usr/bin/python3: bad interpreter: No such file or directory

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)))
Copy link
Copy Markdown
Contributor

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?

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)))
Copy link
Copy Markdown
Contributor

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?

@sanderv32
Copy link
Copy Markdown
Contributor

go build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants