Revision d252a7a8 kamaki/cli/command_shell.py

b/kamaki/cli/command_shell.py
150 150
            pass
151 151

  
152 152
    def _roll_command(self, cmd_path=None):
153
        for subname in self.cmd_tree.get_subnames(cmd_path):
153
        for subname in self.cmd_tree.subnames(cmd_path):
154 154
            self._unregister_method('do_%s' % subname)
155 155
            self._unregister_method('complete_%s' % subname)
156 156
            self._unregister_method('help_%s' % subname)
......
288 288
                    cmd_args[','.join(arg.parsed_name)] = arg.help
289 289
                print_dict(cmd_args, indent=2)
290 290
                stdout.write('%s %s' % (self.prompt, line))
291
            return subcmd.get_subnames()
291
            return subcmd.subnames()
292 292
        self._register_method(complete_method, 'complete_%s' % cmd.name)
293 293

  
294 294
    @property
......
311 311
            intro = self.cmd_tree.name
312 312

  
313 313
        acceptable = parser.arguments['config'].get_groups()
314
        total = self.cmd_tree.get_group_names()
314
        total = self.cmd_tree.groups.keys()
315 315
        self.cmd_tree.exclude(set(total).difference(acceptable))
316 316

  
317 317
        for subcmd in self.cmd_tree.get_subcommands(path):

Also available in: Unified diff