From b203756a886f8d3a16079bea7c047e595b221121 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 21 Jun 2011 14:07:19 +0200 Subject: 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 --- ipalib/frontend.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ipalib/frontend.py') 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( -- cgit