diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-26 01:04:09 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-27 09:07:50 +0200 |
commit | 5feedbb4f3e35cfb63201a360a685127b2608345 (patch) | |
tree | f268f78f54cc8039c962ca1c926971f6242d2319 /python | |
parent | bcc5318b2e938234fcc93f70d6af21367290c1ce (diff) | |
download | Puppet-5feedbb4f3e35cfb63201a360a685127b2608345.tar.gz Puppet-5feedbb4f3e35cfb63201a360a685127b2608345.tar.zst Puppet-5feedbb4f3e35cfb63201a360a685127b2608345.zip |
Allow host to replicate the cluster from backup
Diffstat (limited to 'python')
-rw-r--r-- | python/reboot_ovh_cloud_instance.py | 3 |
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) |
28 | else: | ||
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") |