mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Merge pull request #3580 from ryanpetrello/py3-insights-error
fix a py3 compat issue in the insights action plugin Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -12,7 +12,7 @@ class ActionModule(ActionBase):
|
|||||||
def save_playbook(self, proj_path, plan, content):
|
def save_playbook(self, proj_path, plan, content):
|
||||||
fname = '{}-{}.yml'.format(plan.get('name', None) or 'insights-plan', plan['maintenance_id'])
|
fname = '{}-{}.yml'.format(plan.get('name', None) or 'insights-plan', plan['maintenance_id'])
|
||||||
file_path = os.path.join(proj_path, fname)
|
file_path = os.path.join(proj_path, fname)
|
||||||
with open(file_path, 'w') as f:
|
with open(file_path, 'wb') as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
|
|
||||||
def is_stale(self, proj_path, etag):
|
def is_stale(self, proj_path, etag):
|
||||||
|
|||||||
Reference in New Issue
Block a user