ipaserver_test: Initialize value from options.zonemgr

In the test of options.zonemgr the value has been be checked uninitialized.
This commit is contained in:
Thomas Woerner
2019-07-22 17:23:35 +02:00
parent 82f8dae540
commit fbf6f23590

View File

@@ -797,6 +797,7 @@ def main():
encoding = getattr(sys.stdin, 'encoding', None)
if encoding is None:
encoding = 'utf-8'
value = options.zonemgr
if not isinstance(value, unicode):
value = options.zonemgr.decode(encoding)
else: