pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0117-cli-use-full-name-when-executing-a-command.patch

403b09
From 5139c4ad3a4601d0fc7204b46e2a889d44a79b36 Mon Sep 17 00:00:00 2001
403b09
From: Jan Cholasta <jcholast@redhat.com>
403b09
Date: Mon, 5 Sep 2016 10:18:13 +0200
403b09
Subject: [PATCH] cli: use full name when executing a command
403b09
403b09
Fixes the CLI not to always call the default version of a command even when
403b09
the version was explicitly specified.
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6279
403b09
403b09
Reviewed-By: Martin Basti <mbasti@redhat.com>
403b09
---
403b09
 ipalib/cli.py | 2 +-
403b09
 1 file changed, 1 insertion(+), 1 deletion(-)
403b09
403b09
diff --git a/ipalib/cli.py b/ipalib/cli.py
403b09
index d89a5320853ecf575c7ba710b2db2e62e1003141..df9e6cfd20fead7fd28667386c359db250e64b20 100644
403b09
--- a/ipalib/cli.py
403b09
+++ b/ipalib/cli.py
403b09
@@ -1101,7 +1101,7 @@ class cli(backend.Executioner):
403b09
         cmd = self.get_command(argv)
403b09
         if cmd is None:
403b09
             return
403b09
-        name = cmd.name
403b09
+        name = cmd.full_name
403b09
         kw = self.parse(cmd, argv[1:])
403b09
         if not isinstance(cmd, frontend.Local):
403b09
             self.create_context()
403b09
-- 
403b09
2.7.4
403b09