summaryrefslogtreecommitdiffstats
path: root/awx_collection
diff options
context:
space:
mode:
authorSeth Foster <fosterbseth@gmail.com>2023-11-16 19:19:25 +0100
committerSeth Foster <fosterseth@users.noreply.github.com>2024-02-02 16:37:41 +0100
commit5d1dd8ec410c0983707e1c13df4e7c199facaa20 (patch)
treea349de3967b68e033ab012e70b0a49d6df61524a /awx_collection
parentAdd choices to module protocol field (diff)
downloadawx-5d1dd8ec410c0983707e1c13df4e7c199facaa20.tar.xz
awx-5d1dd8ec410c0983707e1c13df4e7c199facaa20.zip
Fix inconsistent tab width
Signed-off-by: Seth Foster <fosterbseth@gmail.com>
Diffstat (limited to 'awx_collection')
-rw-r--r--awx_collection/plugins/modules/receptor_address.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/awx_collection/plugins/modules/receptor_address.py b/awx_collection/plugins/modules/receptor_address.py
index c541989a4d..5d43245c77 100644
--- a/awx_collection/plugins/modules/receptor_address.py
+++ b/awx_collection/plugins/modules/receptor_address.py
@@ -88,7 +88,6 @@ def main():
protocol=dict(type='str', choices=['tcp', 'ws', 'wss']),
websocket_path=dict(type='str'),
state=dict(choices=['present', 'absent', 'exists'], default='present'),
-
)
# Create a module for ourselves
@@ -106,7 +105,7 @@ def main():
# Attempt to look up an existing instance
receptor_address = module.get_one('receptor_addresses', allow_none=True, data=dict(address=address, protocol=protocol))
if receptor_address:
- receptor_address['type'] = 'receptor_address'
+ receptor_address['type'] = 'receptor_address'
if receptor_address and state == 'absent':
module.delete_if_needed(receptor_address)
@@ -116,13 +115,13 @@ def main():
# Create the data that gets sent for create and update
new_fields = {'instance': instance['id'], 'address': address}
if port:
- new_fields['port'] = port
+ new_fields['port'] = port
if protocol:
- new_fields['protocol'] = protocol
+ new_fields['protocol'] = protocol
if peers_from_control_nodes:
- new_fields['peers_from_control_nodes'] = peers_from_control_nodes
+ new_fields['peers_from_control_nodes'] = peers_from_control_nodes
if websocket_path:
- new_fields['websocket_path'] = websocket_path
+ new_fields['websocket_path'] = websocket_path
module.create_or_update_if_needed(
receptor_address,