mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
read_file() was a remnant of the conversion of ldapupdate.py to a library and
is not accessible directly. Use ipautil.template_file, this works.
This commit is contained in:
parent
c2967a675a
commit
0fb3f394a5
@ -89,8 +89,8 @@ def main():
|
||||
|
||||
dirman_password = ""
|
||||
if options.password:
|
||||
pw = read_file(options.password)
|
||||
dirman_password = pw[0].strip()
|
||||
pw = ipautil.template_file(options.password, [])
|
||||
dirman_password = pw.strip()
|
||||
else:
|
||||
dirman_password = get_dirman_password()
|
||||
|
||||
|
@ -86,8 +86,8 @@ def main():
|
||||
|
||||
dirman_password = ""
|
||||
if options.password:
|
||||
pw = read_file(options.password)
|
||||
dirman_password = pw[0].strip()
|
||||
pw = ipautil.template_file(options.password, [])
|
||||
dirman_password = pw.strip()
|
||||
else:
|
||||
dirman_password = get_dirman_password()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user