summaryrefslogtreecommitdiffstats
path: root/make-lint
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2012-03-15 04:32:37 -0400
committerMartin Kosek <mkosek@redhat.com>2012-03-28 14:04:43 +0200
commit2e2d323186fd5a6701d44e6eff9d24394fd16b30 (patch)
treedaabc8e32e83b775b4cc82d8d7d408b223026330 /make-lint
parent96e22a3ed930e7de4d7b587d21fe177935bf0aee (diff)
downloadfreeipa.git-2e2d323186fd5a6701d44e6eff9d24394fd16b30.tar.gz
freeipa.git-2e2d323186fd5a6701d44e6eff9d24394fd16b30.tar.xz
freeipa.git-2e2d323186fd5a6701d44e6eff9d24394fd16b30.zip
Change parameters to use only default_from for dynamic default values.
Replace all occurences of create_default with equivalent default_from and remove create_default from the framework. This is needed for proper parameter validation, as there is no way to tell which parameters to validate prior to calling create_default, because create_default does not provide information about which parameters are used for generating the default value.
Diffstat (limited to 'make-lint')
-rwxr-xr-xmake-lint6
1 files changed, 3 insertions, 3 deletions
diff --git a/make-lint b/make-lint
index 6b54312b..7ecd59d7 100755
--- a/make-lint
+++ b/make-lint
@@ -56,9 +56,9 @@ class IPATypeChecker(TypeChecker):
'ipalib.plugins.misc.env': ['env'],
'ipalib.parameters.Param': ['cli_name', 'cli_short_name', 'label',
'doc', 'required', 'multivalue', 'primary_key', 'normalizer',
- 'default', 'default_from', 'create_default', 'autofill', 'query',
- 'attribute', 'include', 'exclude', 'flags', 'hint', 'alwaysask',
- 'sortorder', 'csv', 'csv_separator', 'csv_skipspace'],
+ 'default', 'default_from', 'autofill', 'query', 'attribute',
+ 'include', 'exclude', 'flags', 'hint', 'alwaysask', 'sortorder',
+ 'csv', 'csv_separator', 'csv_skipspace'],
'ipalib.parameters.Bool': ['truths', 'falsehoods'],
'ipalib.parameters.Int': ['minvalue', 'maxvalue'],
'ipalib.parameters.Decimal': ['minvalue', 'maxvalue', 'precision'],