mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
fix pylint 2.9 errors in awx collection
This commit is contained in:
@@ -58,7 +58,8 @@ def main():
|
||||
json_output = {'changed': False}
|
||||
|
||||
try:
|
||||
manifest = base64.b64encode(open(module.params.get('manifest'), 'rb').read())
|
||||
with open(module.params.get('manifest'), 'rb') as fid:
|
||||
manifest = base64.b64encode(fid.read())
|
||||
except OSError as e:
|
||||
module.fail_json(msg=str(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user