mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-29 19:04:42 +00:00
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:
@@ -797,6 +797,7 @@ def main():
|
|||||||
encoding = getattr(sys.stdin, 'encoding', None)
|
encoding = getattr(sys.stdin, 'encoding', None)
|
||||||
if encoding is None:
|
if encoding is None:
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
|
value = options.zonemgr
|
||||||
if not isinstance(value, unicode):
|
if not isinstance(value, unicode):
|
||||||
value = options.zonemgr.decode(encoding)
|
value = options.zonemgr.decode(encoding)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user