summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-06-21 14:07:19 +0200
committerRob Crittenden <rcritten@redhat.com>2011-07-15 02:21:23 -0400
commitb203756a886f8d3a16079bea7c047e595b221121 (patch)
treefd0842cffdd0309e06e4fbdf44175e7b64c30f10 /ipalib/frontend.py
parentd802aa57f16e3267b4db739721a56e041e5f888e (diff)
downloadfreeipa-b203756a886f8d3a16079bea7c047e595b221121.tar.gz
freeipa-b203756a886f8d3a16079bea7c047e595b221121.tar.xz
freeipa-b203756a886f8d3a16079bea7c047e595b221121.zip
Add ability to specify DNS reverse zone name by IP network address.
In order for this to work, chaining of parameters through default_from is made possible. ticket 1474
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index 8ac04662f..35343105c 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -408,7 +408,11 @@ class Command(HasParam):
self.debug(
'raw: %s(%s)', self.name, ', '.join(self._repr_iter(**params))
)
- params.update(self.get_default(**params))
+ while True:
+ default = self.get_default(**params)
+ if len(default) == 0:
+ break
+ params.update(default)
params = self.normalize(**params)
params = self.convert(**params)
self.debug(