Merge pull request #18 from pdmars/mgmt_reboot_instance

adding mysql stop and instance reboot commands for management client
This commit is contained in:
Nirmal Ranganathan
2012-07-09 11:42:03 -07:00

View File

@@ -138,6 +138,22 @@ class InstanceCommands(object):
except:
print sys.exc_info()[1]
def stop(self, id):
"""Stop MySQL on the given instance."""
dbaas = common.get_client()
try:
result = dbaas.management.stop(id)
except:
print sys.exc_info()[1]
def reboot(self, id):
"""Reboot the instance."""
dbaas = common.get_client()
try:
result = dbaas.management.reboot(id)
except:
print sys.exec_info()[1]
class StorageCommands(object):
"""Commands to list devices info"""