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:
Simo Sorce 2008-12-05 09:22:00 -05:00
parent c2967a675a
commit 0fb3f394a5
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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()