From 5feedbb4f3e35cfb63201a360a685127b2608345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 26 Jun 2018 01:04:09 +0200 Subject: Allow host to replicate the cluster from backup --- python/reboot_ovh_cloud_instance.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') 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: result = client.post("/cloud/project/{}/instance/{}/rescueMode".format(project, instance["id"]), imageId=instance["imageId"], rescue=(netboot_mode == "rescue")) print(result) +else: + result = client.post("/cloud/project/{}/instance/{}/reboot".format(project, instance["id"]), type="soft") + print(result) # reboot normal: #result = client.post("/cloud/project/{}/instance/{}/reboot".format(project, instance["id"]), type="soft") -- cgit v1.2.3