From 24571166f671e86599ef9a95ebbd31d6684c03a8 Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Tue, 2 Jun 2020 14:40:53 -0400 Subject: [PATCH] Fixing fail_json error --- awx_collection/plugins/module_utils/tower_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/module_utils/tower_api.py b/awx_collection/plugins/module_utils/tower_api.py index 6e620ed072..7ef3cb7945 100644 --- a/awx_collection/plugins/module_utils/tower_api.py +++ b/awx_collection/plugins/module_utils/tower_api.py @@ -138,7 +138,7 @@ class TowerModule(AnsibleModule): try: self.load_config(config_file) except ConfigFileException: - self.fail_json('The config file {0} is not properly formatted'.format(config_file)) + self.fail_json(msg='The config file {0} is not properly formatted'.format(config_file)) def load_config(self, config_path): # Validate the config file is an actual file