diff --git a/action_plugins/cli.py b/action_plugins/cli.py index e280121..34e1722 100644 --- a/action_plugins/cli.py +++ b/action_plugins/cli.py @@ -1,22 +1,9 @@ -# (c) 2015, Michael DeHaan -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# (c) 2018, Ansible by Red Hat, inc +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . -from __future__ import (absolute_import, division, print_function) -__metaclass__ = type - +# import json from ansible import constants as C @@ -70,7 +57,7 @@ def run(self, tmp=None, task_vars=None): new_task = self._task.copy() new_task.args = { 'file': parser, - 'contents': output + 'contents': (json_data or output) } kwargs = {