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 committed 2009-01-26 14:44:34 -05:00
1 parent c2967a675a
commit 0fb3f394a5
2 files changed
+4 -4

No files matched your search

+2 -2
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()
+2 -2
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()