mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
fixup! pylint: Ignore usage of 'unicode' before assignment
This commit is contained in:
@@ -139,7 +139,7 @@ def main():
|
||||
conn.connect(ccache=installer._ccache)
|
||||
remote_api.Command['hostgroup_add_member'](
|
||||
u'ipaservers',
|
||||
host=[unicode(api.env.host)], # pylint: disable=E0606
|
||||
host=[unicode(api.env.host)], # pylint: disable=W0012,E0606
|
||||
)
|
||||
finally:
|
||||
if conn.isconnected():
|
||||
|
||||
@@ -658,7 +658,7 @@ def main():
|
||||
# Check authorization
|
||||
result = remote_api.Command['hostgroup_find'](
|
||||
cn=u'ipaservers',
|
||||
host=[unicode(api.env.host)] # pylint: disable=E0606
|
||||
host=[unicode(api.env.host)] # pylint: disable=W0012,E0606
|
||||
)['result']
|
||||
add_to_ipaservers = not result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user