Revision f724cd35 kamaki/cli/command_shell.py

b/kamaki/cli/command_shell.py
68 68
    _context_stack = []
69 69
    _prompt_stack = []
70 70
    _parser = None
71
    auth_base = None
71 72

  
72 73
    undoc_header = 'interactive shell commands:'
73 74

  
......
197 198
                    if subcmd.path == 'history_run':
198 199
                        instance = cls(
199 200
                            dict(cmd_parser.arguments),
200
                            self.cmd_tree)
201
                            cmd_tree=self.cmd_tree)
201 202
                    else:
202
                        instance = cls(dict(cmd_parser.arguments))
203
                        instance = cls(
204
                            dict(cmd_parser.arguments), self.auth_base)
203 205
                    cmd_parser.update_arguments(instance.arguments)
204
                    #instance.arguments.pop('config')
205 206
                    cmd_parser.arguments = instance.arguments
206 207
                    cmd_parser.syntax = '%s %s' % (
207 208
                        subcmd.path.replace('_', ' '), cls.syntax)
......
296 297
        hdr = tmp_partition[0].strip()
297 298
        return '%s commands:' % hdr
298 299

  
299
    def run(self, parser, path=''):
300
    def run(self, auth_base, parser, path=''):
301
        self.auth_base = auth_base
300 302
        self._parser = parser
301 303
        self._history = History(
302 304
            parser.arguments['config'].get('history', 'file'))

Also available in: Unified diff