Created
April 6, 2016 15:34
-
-
Save thejhh/fa43de1d12c57f3ec68d8e0778a760b2 to your computer and use it in GitHub Desktop.
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
| # Start | |
| counter = 0 | |
| while 1: | |
| try: | |
| counter += 1 | |
| print("Start") | |
| node.qemu(vps.vmid).status.start.create() | |
| break | |
| except ResourceException as e: | |
| if counter >= 10: raise | |
| elog(e) | |
| print("Proxmox Error? I will try again in a moment.") | |
| sleep(1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context Manager vois auttaa?