From 136a649a9e1da26e28b7151af061f8094b0f1d22 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Sep 05 2016 16:03:52 +0000 Subject: 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 --- diff --git a/ipalib/cli.py b/ipalib/cli.py index d89a532..df9e6cf 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()