X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=python%2Freboot_ovh_cloud_instance.py;h=1e88c8943142c78a4767d2d2c68108d893bd4db2;hb=bf0edb7d7858df64782719f9e6bcc1ba2de57b0f;hp=de20c07c1a905789f5c129ec797c0626de664efd;hpb=b60b98643a6da52c08ced89779964b722230a7db;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")