diff --git a/oslo_config/cfg.py b/oslo_config/cfg.py index cbffb1e1..672eaa0a 100644 --- a/oslo_config/cfg.py +++ b/oslo_config/cfg.py @@ -2179,7 +2179,7 @@ class ConfigOpts(abc.Mapping): # the --shell_completion option argv = args if args is not None else sys.argv[1:] if len(argv) > 1 and argv[0] == '--shell_completion' \ - and args[1] in self.supported_shell_completion: + and argv[1] in self.supported_shell_completion: shell = argv[1] self._print_shell_completion(shell) sys.exit(0)