X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=python%2Freboot_ovh_cloud_instance.py;h=1e88c8943142c78a4767d2d2c68108d893bd4db2;hb=dad86ebc278becc47b67c2ce29acd4147b3317d5;hp=bd70e0b8fb166e2220e4d0623ad1ed2be3ac7512;hpb=b269b2fb63da19e0f3316897c66108b062a8343b;p=perso%2FImmae%2FProjets%2FPuppet.git 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")