summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index 4d46297c..ff088ff8 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -229,6 +229,7 @@ class Param(ReadOnly):
('default_from', DefaultFrom, None),
('create_default', callable, None),
('autofill', bool, False),
+ ('query', bool, False),
('flags', frozenset, frozenset()),
# The 'default' kwarg gets appended in Param.__init__():
@@ -489,6 +490,8 @@ class Param(ReadOnly):
:param value: A proposed value for this parameter.
"""
+ if self.query:
+ return
if value is None:
if self.required:
raise RequirementError(name=self.name)