summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-22 19:40:02 -0700
committerRob Crittenden <rcritten@redhat.com>2009-02-03 15:29:02 -0500
commite537dc89cbffee011cb985f5d6fd430dae3af000 (patch)
tree04fe8256da212aa079d8d9d4791f9afcd8d7827f /ipalib/parameters.py
parent230712a88a99806909cbe4f4971bea7cc7740132 (diff)
downloadfreeipa-e537dc89cbffee011cb985f5d6fd430dae3af000.tar.gz
freeipa-e537dc89cbffee011cb985f5d6fd430dae3af000.tar.xz
freeipa-e537dc89cbffee011cb985f5d6fd430dae3af000.zip
Fixed a few problems in the CLI interactive prompting (wont prompt for Flag now)
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index 0cf6a1f7..6ce0ad80 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -243,6 +243,11 @@ class Param(ReadOnly):
self.param_spec = name
self.__kw = dict(kw)
+ if isinstance(self, Password):
+ self.password = True
+ else:
+ self.password = False
+
# Merge in kw from parse_param_spec():
if not ('required' in kw or 'multivalue' in kw):
(name, kw_from_spec) = parse_param_spec(name)
@@ -354,7 +359,7 @@ class Param(ReadOnly):
return value
def safe_value(self, value):
- if isinstance(self, Password) and value is not None:
+ if self.password and value is not None:
return u'********'
return value