Ravi Nori has uploaded a new change for review.

Change subject: cli: list permits format better error when not enough 
parameters(#962472)
......................................................................

cli: list permits format better error when not enough parameters(#962472)

list permits when executed at cli gives an improper error
message as shown below

unknown error: not enough arguments for format string

Change-Id: I349eb2719c15c0a5c08a31562597f095fd0cd9d1
Bug-Url: https://bugzilla.redhat.com/962472
Signed-off-by: Ravi Nori <rn...@redhat.com>
---
M src/ovirtcli/command/command.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/30/15530/1

diff --git a/src/ovirtcli/command/command.py b/src/ovirtcli/command/command.py
index 97c1a62..09868bb 100644
--- a/src/ovirtcli/command/command.py
+++ b/src/ovirtcli/command/command.py
@@ -294,7 +294,7 @@
 
         err_str = Messages.Error.NO_SUCH_COLLECTION
         if context_variants:
-            err_str = err_str + 
(Messages.Info.POSSIBALE_ARGUMENTS_COMBINATIONS +
+            err_str = err_str + 
(Messages.Info.POSSIBALE_ARGUMENTS_COMBINATIONS %
                                  str(context_variants))
         self.error(err_str % typ)
 
@@ -349,7 +349,7 @@
             err_str = Messages.Error.NO_SUCH_TYPE_OR_ARS_NOT_VALID
             if context_variants:
                 err_str = err_str + 
(Messages.Info.POSSIBALE_ARGUMENTS_COMBINATIONS
-                                      + str(context_variants))
+                                      % str(context_variants))
             self.error(err_str % candidate)
 
         return None


-- 
To view, visit http://gerrit.ovirt.org/15530
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I349eb2719c15c0a5c08a31562597f095fd0cd9d1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <rn...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to