Michael Pasternak has uploaded a new change for review.

Change subject: cli: adapt to sdk #853947 fix
......................................................................

cli: adapt to sdk #853947 fix

Change-Id: Ib0b502c934ba97012a1cf942f5dcd4b2dde11c7c
Signed-off-by: Michael Pasternak <[email protected]>
---
M src/ovirtcli/utils/methodhelper.py
1 file changed, 2 insertions(+), 1 deletion(-)


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

diff --git a/src/ovirtcli/utils/methodhelper.py 
b/src/ovirtcli/utils/methodhelper.py
index 0d1fe8c..a1e8df3 100644
--- a/src/ovirtcli/utils/methodhelper.py
+++ b/src/ovirtcli/utils/methodhelper.py
@@ -23,7 +23,7 @@
     NON_ARG_TEMPLATE = ':not-arg'
 
     @staticmethod
-    def getMethodArgs(module, cls, method, get_varargs=False, 
get_keywords=False, drop_self=False):
+    def getMethodArgs(module, cls, method, get_varargs=False, 
get_keywords=False, drop_self=False, exclude=['context']):
         '''Returns list of method's arguments'''
         if hasattr(module, cls):
             cls_ref = getattr(module, cls)
@@ -32,6 +32,7 @@
                 if method_ref:
                     try:
                         res = getattr(inspect.getargspec(method_ref), 'args')
+                        for item in exclude: res.remove(item)
                         if not res: res = []
                         if drop_self and res.__contains__('self'):
                             res.remove('self')


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib0b502c934ba97012a1cf942f5dcd4b2dde11c7c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to