Merge pull request #65 from aababilov/59b7f5746da71a780e578c5d14a4e08238fdbcce

Implement server reboot
This commit is contained in:
Devin Carlen
2011-07-20 10:15:56 -07:00

View File

@@ -177,6 +177,8 @@ class Server(APIResourceWrapper):
image = image_get(self.request, self.imageRef)
return image.name
def reboot(self, hardness=openstack.compute.servers.REBOOT_HARD):
compute_api(self.request).servers.reboot(self.id, hardness)
class ServerAttributes(APIDictWrapper):
"""Simple wrapper around openstackx.extras.server.Server attributes