]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - python/reboot_ovh_cloud_instance.py
Merge branch 'dev'
[perso/Immae/Projets/Puppet.git] / python / reboot_ovh_cloud_instance.py
index bd70e0b8fb166e2220e4d0623ad1ed2be3ac7512..1e88c8943142c78a4767d2d2c68108d893bd4db2 100644 (file)
@@ -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")