diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-09-05 10:18:13 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-09-05 18:03:52 +0200 |
commit | a3d178b86ddff9335228d99fe06e8fc89a00235a (patch) | |
tree | 76726ea530160e9deb744367a74f6844e22fd166 /ipalib/cli.py | |
parent | 82e754e9c5e46317c7c060d9bc9c00ee259101a1 (diff) | |
download | freeipa-a3d178b86ddff9335228d99fe06e8fc89a00235a.tar.gz freeipa-a3d178b86ddff9335228d99fe06e8fc89a00235a.tar.xz freeipa-a3d178b86ddff9335228d99fe06e8fc89a00235a.zip |
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>
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index d89a53208..df9e6cfd2 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -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() |