1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Merge pull request #617 from ryanpetrello/release_3.2.3

fix a bug in inventory generation for isolated nodes
This commit is contained in:
Ryan Petrello 2018-01-11 11:04:09 -05:00 committed by GitHub
commit 89b9d7ac8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -707,7 +707,7 @@ class BaseTask(LogErrorsTask):
'hostvars': True,
}).run(buff)
json_data = buff.getvalue().strip()
f.write("#! /usr/bin/env python\nprint '''%s'''\n" % json_data)
f.write('#! /usr/bin/env python\n# -*- coding: utf-8 -*-\nprint %r\n' % json_data)
os.chmod(path, stat.S_IRUSR | stat.S_IXUSR)
return path
else: