mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Small change in ipalib.cli to check if param is a Password instance instead of calling depreciated ispasswd() method
This commit is contained in:
parent
fdda31c50b
commit
4d4fa694ee
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user