X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=python%2Freboot_ovh_cloud_instance.py;h=1e88c8943142c78a4767d2d2c68108d893bd4db2;hb=HEAD;hp=de20c07c1a905789f5c129ec797c0626de664efd;hpb=69da835d04e741f4e85da3c473ba86c8801931fd;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/python/reboot_ovh_cloud_instance.py b/python/reboot_ovh_cloud_instance.py index de20c07..1e88c89 100644 --- a/python/reboot_ovh_cloud_instance.py +++ b/python/reboot_ovh_cloud_instance.py @@ -25,4 +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")