summaryrefslogtreecommitdiffstats
path: root/awx_collection
diff options
context:
space:
mode:
Diffstat (limited to 'awx_collection')
-rw-r--r--awx_collection/plugins/modules/instance.py4
-rw-r--r--awx_collection/test/awx/test_completeness.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/awx_collection/plugins/modules/instance.py b/awx_collection/plugins/modules/instance.py
index c29246ae31..2efcdd6f5f 100644
--- a/awx_collection/plugins/modules/instance.py
+++ b/awx_collection/plugins/modules/instance.py
@@ -130,8 +130,8 @@ def main():
if peers:
for p in peers:
if not p.isdigit():
- p_id = module.get_one('receptor_addresses', allow_none=False, data={'address': p})
- peers_ids.append(p_id['id'])
+ p_id = module.get_one('receptor_addresses', allow_none=False, data={'address': p})
+ peers_ids.append(p_id['id'])
else:
peers_ids.append(p)
diff --git a/awx_collection/test/awx/test_completeness.py b/awx_collection/test/awx/test_completeness.py
index 6f5c459e09..b208f3cdb0 100644
--- a/awx_collection/test/awx/test_completeness.py
+++ b/awx_collection/test/awx/test_completeness.py
@@ -248,7 +248,7 @@ def test_completeness(collection_import, request, admin_user, job_template, exec
singular_endpoint = '{0}'.format(endpoint)
if singular_endpoint.endswith('ies'):
singular_endpoint = singular_endpoint[:-3]
- elif singular_endpoint.endswith('ses'): # receptor_addresses
+ elif singular_endpoint.endswith('ses'): # receptor_addresses
singular_endpoint = singular_endpoint[:-2]
elif singular_endpoint != 'settings' and singular_endpoint.endswith('s'):
singular_endpoint = singular_endpoint[:-1]