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:
1 parent
c2967a675a
commit
0fb3f394a5
2 files changed
+4
-4
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user