aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-27 14:14:24 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-27 14:14:24 +0200
commite122c6b1ca829844247fbe43f63c74f3f589554f (patch)
tree1d70c8ae571e25cafe5ad481f3748be3588e0cd6 /python
parentc93847dc9d2f9dea6ed09ce5f0cca479131de86d (diff)
parentf1d583bfdaf881116e5f9ca9e050307e7acdc28e (diff)
downloadPuppet-e122c6b1ca829844247fbe43f63c74f3f589554f.tar.gz
Puppet-e122c6b1ca829844247fbe43f63c74f3f589554f.tar.zst
Puppet-e122c6b1ca829844247fbe43f63c74f3f589554f.zip
Merge branch '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")