Michael Pasternak has uploaded a new change for review.

Change subject: cli: Raise an error if identifier parameter is not specified in 
/show command #855750
......................................................................

cli: Raise an error if identifier parameter is not specified in /show command 
#855750

https://bugzilla.redhat.com/show_bug.cgi?id=855750

Change-Id: Id0c7b99d008d02fbee19cc133c1bc4f728506f6d
Signed-off-by: Michael Pasternak <mpast...@redhat.com>
---
M src/ovirtcli/command/show.py
1 file changed, 4 insertions(+), 1 deletion(-)


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

diff --git a/src/ovirtcli/command/show.py b/src/ovirtcli/command/show.py
index 28ca6dd..d053845 100644
--- a/src/ovirtcli/command/show.py
+++ b/src/ovirtcli/command/show.py
@@ -117,7 +117,10 @@
         args = self.arguments
         opts = self.options
 
-        if len(args) < 2 and len(opts) == 0:
+        if len(args) < 2 and (len(opts) == 0 or
+                              (len(opts) == 1
+                               and
+                               opts.keys()[0].endswith('-identifier'))):
             self.error(Messages.Error.NO_IDENTIFIER % args[0])
 
         types = self.get_singular_types(method='get')


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

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

Reply via email to