CP-312965: Port to Python 3. Removed obsolete example.#55
Open
kc284 wants to merge 3 commits into
Open
Conversation
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
936649f to
5e156ad
Compare
xueqingz
reviewed
Jun 5, 2026
xueqingz
reviewed
Jun 5, 2026
Contributor
|
Also I miss a comment, do we need to update python files under /misc ? |
Contributor
Author
|
Ah yes, I didn't think about the files under /misc. I'll look into it - but if you don't mind I'll raise a new PR to keep things separate. |
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
a0a691d to
fbd0ac7
Compare
xueqingz
reviewed
Jun 9, 2026
ceca2d1 to
73aa023
Compare
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
73aa023 to
b49ae9a
Compare
xueqingz
approved these changes
Jun 12, 2026
BengangY
reviewed
Jun 16, 2026
| @@ -1 +1 @@ | |||
| #!/usr/bin/env python | |||
Contributor
There was a problem hiding this comment.
Should be #!/usr/bin/env python3?
| print sys.argv[0], "<host-uuid> [--force]" | ||
| if len(sys.argv) != 4 and len(sys.argv) != 5: | ||
| print("Usage:") | ||
| print("%s <url> <username> <password> [--force]" % sys.argv[0]) |
Contributor
There was a problem hiding this comment.
Why remove ? This will shutdown all VMs. Is this expected behavior?
|
|
||
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
| output = ssl.wrap_socket(s) | ||
| context = ssl.create_default_context() |
Contributor
There was a problem hiding this comment.
Should it be replaced with create_unverified_context() to ignore cert check?
|
|
||
| import XenAPI | ||
|
|
||
| TIMEOUT_SECS=30 |
Contributor
There was a problem hiding this comment.
It's not used now. Should it be removed?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.