From 4d4fa694ee2b84975a0e7596b51e21109f58a76d Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 14 Jan 2009 23:15:46 -0700 Subject: Small change in ipalib.cli to check if param is a Password instance instead of calling depreciated ispasswd() method --- ipalib/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index f6c187b3..5cf68852 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -38,6 +38,7 @@ import errors import plugable import util from constants import CLI_TAB +from parameters import Password def to_cli(name): @@ -699,7 +700,7 @@ class CLI(object): result = cmd(**kw) if callable(cmd.output_for_cli): for param in cmd.params(): - if param.ispassword(): + if isinstance(param, Password): try: del kw[param.name] except KeyError: -- cgit