aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-27 13:23:13 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-27 13:23:13 +0200
commit320d02a091e0548126c27ca7efd86341b80be4ea (patch)
tree97beae3acaf1c552cf5c19521260e76dedae5913 /python
parentbcc5318b2e938234fcc93f70d6af21367290c1ce (diff)
parent2f3d3a34ab0b3fd31bd84e4c935954740313dbed (diff)
downloadPuppet-320d02a091e0548126c27ca7efd86341b80be4ea.tar.gz
Puppet-320d02a091e0548126c27ca7efd86341b80be4ea.tar.zst
Puppet-320d02a091e0548126c27ca7efd86341b80be4ea.zip
Merge branch 'backup/recovery' into dev
Diffstat (limited to 'python')
-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")