From 62a9c740400a9665ca0c33c9ca14f120e0cab693 Mon Sep 17 00:00:00 2001 From: beeankha Date: Mon, 17 May 2021 14:19:33 -0400 Subject: [PATCH] Fix failing integration test playbooks --- awx_collection/plugins/module_utils/tower_api.py | 2 +- .../integration/targets/tower_instance_group/tasks/main.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/awx_collection/plugins/module_utils/tower_api.py b/awx_collection/plugins/module_utils/tower_api.py index d37eb5101a..ab1b9083a7 100644 --- a/awx_collection/plugins/module_utils/tower_api.py +++ b/awx_collection/plugins/module_utils/tower_api.py @@ -232,7 +232,7 @@ class TowerAPIModule(TowerModule): # A 405 means we used a method that isn't allowed. Usually this is a bad request, but it requires special treatment because the # API sends it as a logic error in a few situations (e.g. trying to cancel a job that isn't running). elif he.code == 405: - self.fail_json(msg="The Tower server says you can't make a request with the {0} method to this endpoing {1}".format(method, url.path)) + self.fail_json(msg="The Tower server says you can't make a request with the {0} method to this endpoint {1}".format(method, url.path)) # Sanity check: Did we get some other kind of error? If so, write an appropriate error message. elif he.code >= 400: # We are going to return a 400 so the module can decide what to do with it diff --git a/awx_collection/tests/integration/targets/tower_instance_group/tasks/main.yml b/awx_collection/tests/integration/targets/tower_instance_group/tasks/main.yml index 0ca696edab..8389c13782 100644 --- a/awx_collection/tests/integration/targets/tower_instance_group/tasks/main.yml +++ b/awx_collection/tests/integration/targets/tower_instance_group/tasks/main.yml @@ -53,6 +53,7 @@ tower_instance_group: name: "{{ group_name2 }}" credential: "{{ cred_result.id }}" + is_container_group: true register: result - assert: