Ravi Nori has uploaded a new change for review.

Change subject: cli: show event -id accept strings instead of numeric 
values(#886786)
......................................................................

cli: show event -id accept strings instead of numeric values(#886786)

Show event -id does not accept numeric values.

This patch does and explicit cast into string for ids.

Change-Id: Ie31f1f6cb9e5bbc9146088bd820cf80ebf41d757
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=886786
Signed-off-by: Ravi Nori <rn...@redhat.com>
---
M src/ovirtcli/command/command.py
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/src/ovirtcli/command/command.py b/src/ovirtcli/command/command.py
index 1ae497a..02a4534 100644
--- a/src/ovirtcli/command/command.py
+++ b/src/ovirtcli/command/command.py
@@ -325,7 +325,7 @@
                 if name:
                     return coll.get(name=name)
                 if kwargs and kwargs.has_key('id'):
-                    return coll.get(id=kwargs['id'])
+                    return coll.get(id=str(kwargs['id']))
                 else:
                     identifier = self.__produce_identifier(obj_id)
                     if identifier:


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie31f1f6cb9e5bbc9146088bd820cf80ebf41d757
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