cli: use full name when executing a command

Fixes the CLI not to always call the default version of a command even when
the version was explicitly specified.

https://fedorahosted.org/freeipa/ticket/6279

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Jan Cholasta 2016-09-05 10:18:13 +02:00 committed by Martin Basti
parent 82e754e9c5
commit a3d178b86d

View File

@ -1101,7 +1101,7 @@ class cli(backend.Executioner):
cmd = self.get_command(argv)
if cmd is None:
return
name = cmd.name
name = cmd.full_name
kw = self.parse(cmd, argv[1:])
if not isinstance(cmd, frontend.Local):
self.create_context()