aboutsummaryrefslogtreecommitdiff
path: root/python/reboot_ovh_cloud_instance.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/reboot_ovh_cloud_instance.py')
-rw-r--r--python/reboot_ovh_cloud_instance.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/reboot_ovh_cloud_instance.py b/python/reboot_ovh_cloud_instance.py
index bd70e0b..1e88c89 100644
--- a/python/reboot_ovh_cloud_instance.py
+++ b/python/reboot_ovh_cloud_instance.py
@@ -25,6 +25,9 @@ if netboot_mode is not None:
25 result = client.post("/cloud/project/{}/instance/{}/rescueMode".format(project, 25 result = client.post("/cloud/project/{}/instance/{}/rescueMode".format(project,
26 instance["id"]), imageId=instance["imageId"], rescue=(netboot_mode == "rescue")) 26 instance["id"]), imageId=instance["imageId"], rescue=(netboot_mode == "rescue"))
27 print(result) 27 print(result)
28else:
29 result = client.post("/cloud/project/{}/instance/{}/reboot".format(project, instance["id"]), type="soft")
30 print(result)
28 31
29# reboot normal: 32# reboot normal:
30#result = client.post("/cloud/project/{}/instance/{}/reboot".format(project, instance["id"]), type="soft") 33#result = client.post("/cloud/project/{}/instance/{}/reboot".format(project, instance["id"]), type="soft")