diff options
| author | Joe Cruz <joe.cruz@rackspace.com> | 2013-02-01 10:34:41 -0600 |
|---|---|---|
| committer | Joe Cruz <jcruz7@gmail.com> | 2013-02-01 14:32:18 -0600 |
| commit | 36c99c3a4d3b029398e341781cd90eb0f1d31e4c (patch) | |
| tree | 75c8751e2c5c01cf45f2fdc4ffb9281467c9a119 /reddwarfclient | |
| parent | d0a1dcc60c5623f576541d5cceff0fa4e019ce53 (diff) | |
| download | python-troveclient-36c99c3a4d3b029398e341781cd90eb0f1d31e4c.tar.gz | |
Adds reset task status mgmt instance action
Partially implements: blueprint reset-task-status-mgmt-api
Change-Id: I54fa7a91f67910a95f217ea04f240d917e3121ec
Diffstat (limited to 'reddwarfclient')
| -rw-r--r-- | reddwarfclient/management.py | 7 | ||||
| -rw-r--r-- | reddwarfclient/mcli.py | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/reddwarfclient/management.py b/reddwarfclient/management.py index 0c824d0..346999d 100644 --- a/reddwarfclient/management.py +++ b/reddwarfclient/management.py @@ -124,3 +124,10 @@ class Management(base.ManagerWithFind): """ body = {'update': {}} self._action(instance_id, body) + + def reset_task_status(self, instance_id): + """ + Set the task status to NONE. + """ + body = {'reset-task-status': {}} + self._action(instance_id, body) diff --git a/reddwarfclient/mcli.py b/reddwarfclient/mcli.py index 37c2821..f89bfe7 100644 --- a/reddwarfclient/mcli.py +++ b/reddwarfclient/mcli.py @@ -146,6 +146,11 @@ class InstanceCommands(common.AuthedCommandsBase): self._require('id') self._pretty_print(self.dbaas.management.migrate, self.id) + def reset_task_status(self): + """Set the instance's task status to NONE.""" + self._require('id') + self._pretty_print(self.dbaas.management.reset_task_status, self.id) + class StorageCommands(common.AuthedCommandsBase): """Commands to list devices info""" |
