summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ceilometerclient/shell.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/ceilometerclient/shell.py b/ceilometerclient/shell.py
index 0b3002c..799a537 100644
--- a/ceilometerclient/shell.py
+++ b/ceilometerclient/shell.py
@@ -117,19 +117,9 @@ class CeilometerShell(object):
version, 'shell')
self._find_actions(subparsers, submodule)
self._find_actions(subparsers, self)
- self._add_bash_completion_subparser(subparsers)
return parser
- def _add_bash_completion_subparser(self, subparsers):
- subparser = subparsers.add_parser(
- 'bash_completion',
- add_help=False,
- formatter_class=HelpFormatter
- )
- self.subcommands['bash_completion'] = subparser
- subparser.set_defaults(func=self.do_bash_completion)
-
def _find_actions(self, subparsers, actions_module):
for attr in (a for a in dir(actions_module) if a.startswith('do_')):
# I prefer to be hypen-separated instead of underscores.
@@ -243,7 +233,6 @@ class CeilometerShell(object):
options.add(option)
commands.remove('bash-completion')
- commands.remove('bash_completion')
print(' '.join(commands | options))
@utils.arg('command', metavar='<subcommand>', nargs='?',