diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-01-15 23:17:59 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-01-15 23:17:59 +0000 |
| commit | c0cd9d7f72fb35e0f6e797a6b0555239f7ee56ab (patch) | |
| tree | 0c49b93ee499e25eee0724450625287f462860fb /troveclient/compat/cli.py | |
| parent | 261c088eac631cbf013b496cf6d6dccaf3003df3 (diff) | |
| parent | e776382c93c2eb9abcf6e6f5f84d43e97f9ca642 (diff) | |
| download | python-troveclient-2.0.0.tar.gz | |
Merge "Add root-disable api"2.0.0
Diffstat (limited to 'troveclient/compat/cli.py')
| -rw-r--r-- | troveclient/compat/cli.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/troveclient/compat/cli.py b/troveclient/compat/cli.py index 5064c87..86b3109 100644 --- a/troveclient/compat/cli.py +++ b/troveclient/compat/cli.py @@ -268,6 +268,11 @@ class RootCommands(common.AuthedCommandsBase): except Exception: print(sys.exc_info()[1]) + def delete(self): + """Disable the instance's root user.""" + self._require('id') + print(self.dbaas.root.delete(self.id)) + def enabled(self): """Check the instance for root access.""" self._require('id') |
