From 52a2ed27867d17198489c1a51f5ec9290126b802 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Mon, 1 Apr 2019 08:47:38 -0400 Subject: [PATCH] fix a py3 compat issue in the insights action plugin --- awx/playbooks/action_plugins/insights.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/playbooks/action_plugins/insights.py b/awx/playbooks/action_plugins/insights.py index 04b99cd6b8..83b63c2d3d 100644 --- a/awx/playbooks/action_plugins/insights.py +++ b/awx/playbooks/action_plugins/insights.py @@ -12,7 +12,7 @@ class ActionModule(ActionBase): def save_playbook(self, proj_path, plan, content): fname = '{}-{}.yml'.format(plan.get('name', None) or 'insights-plan', plan['maintenance_id']) 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) def is_stale(self, proj_path, etag):