summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2013-10-01 13:57:24 -0400
committerPetr Viktorin <pviktori@redhat.com>2013-10-08 16:46:20 +0200
commite05dfbd8b4b4e040266ecfba579bcd64e22b342b (patch)
treef737217391030c89a8e37e6f1de412dd29ea4c8b /ipalib/parameters.py
parentb54cdab33d14d5eb47af7da2bdb84ade6a06abba (diff)
downloadfreeipa-e05dfbd8b4b4e040266ecfba579bcd64e22b342b.tar.gz
freeipa-e05dfbd8b4b4e040266ecfba579bcd64e22b342b.tar.xz
freeipa-e05dfbd8b4b4e040266ecfba579bcd64e22b342b.zip
Add optional_create flag
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index f592a323f..79b9062bb 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -351,6 +351,8 @@ class Param(ReadOnly):
not be given at all. All crud.Update commands automatically
convert required parameters to `nonempty` ones, so the value
can be unspecified (unchanged) but cannot be deleted.
+ * optional_create: do not require the parameter for crud.Create
+ based commands
- hint: this attribute is currently not used
- alwaysask: when enabled, CLI asks for parameter value even when the
parameter is not `required`