summaryrefslogtreecommitdiffstats
path: root/ipa-server/xmlrpc-server/ipaxmlrpc.py
diff options
context:
space:
mode:
authorrcritten@redhat.com <rcritten@redhat.com>2007-10-01 13:34:43 -0400
committerrcritten@redhat.com <rcritten@redhat.com>2007-10-01 13:34:43 -0400
commit0cfccd0f8cf77fd2a4197cb47becea85173ca48a (patch)
treefb51982593b33d2ca56867cb64633678d6de74dd /ipa-server/xmlrpc-server/ipaxmlrpc.py
parent2ef71a85d00b3572176d95859a7d951083794a88 (diff)
downloadfreeipa-0cfccd0f8cf77fd2a4197cb47becea85173ca48a.tar.gz
freeipa-0cfccd0f8cf77fd2a4197cb47becea85173ca48a.tar.xz
freeipa-0cfccd0f8cf77fd2a4197cb47becea85173ca48a.zip
Don't include opts in any public argument lists. It is used internally only.
Diffstat (limited to 'ipa-server/xmlrpc-server/ipaxmlrpc.py')
-rw-r--r--ipa-server/xmlrpc-server/ipaxmlrpc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa-server/xmlrpc-server/ipaxmlrpc.py b/ipa-server/xmlrpc-server/ipaxmlrpc.py
index f8395dcc..69b2740f 100644
--- a/ipa-server/xmlrpc-server/ipaxmlrpc.py
+++ b/ipa-server/xmlrpc-server/ipaxmlrpc.py
@@ -243,6 +243,9 @@ class ModXMLRPCRequestHandler(object):
for x in range(0, func.func_code.co_argcount):
if x == 0 and func.func_code.co_varnames[x] == "self":
continue
+ # opts is a name we tack on internally. Don't publish it.
+ if func.func_code.co_varnames[x] == "opts":
+ continue
if func.func_defaults and func.func_code.co_argcount - x <= len(func.func_defaults):
args.append((func.func_code.co_varnames[x], func.func_defaults[x - func.func_code.co_argcount + len(func.func_defaults)]))
else: