summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index d2985fa73..d70a725e6 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -121,7 +121,8 @@ class DefaultFrom(plugable.ReadOnly):
raise TypeError('callback must be callable; got %r' % callback)
self.callback = callback
if len(keys) == 0:
- self.keys = callback.func_code.co_varnames
+ fc = callback.func_code
+ self.keys = fc.co_varnames[:fc.co_argcount]
else:
self.keys = keys
for key in self.keys: