mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
PEP 8 E111 cleanup. (#20841)
This commit is contained in:
parent
462ab6b1db
commit
23f2efbc8d
7 changed files with 55 additions and 56 deletions
|
@ -306,12 +306,12 @@ def main():
|
|||
|
||||
# Default port
|
||||
if port_in is None:
|
||||
if type_in in ['HTTP', 'HTTP_STR_MATCH']:
|
||||
port_in = 80
|
||||
elif type_in in ['HTTPS', 'HTTPS_STR_MATCH']:
|
||||
port_in = 443
|
||||
else:
|
||||
module.fail_json(msg="parameter 'port' is required for 'type' TCP")
|
||||
if type_in in ['HTTP', 'HTTP_STR_MATCH']:
|
||||
port_in = 80
|
||||
elif type_in in ['HTTPS', 'HTTPS_STR_MATCH']:
|
||||
port_in = 443
|
||||
else:
|
||||
module.fail_json(msg="parameter 'port' is required for 'type' TCP")
|
||||
|
||||
# string_match in relation with type
|
||||
if type_in in ['HTTP_STR_MATCH', 'HTTPS_STR_MATCH']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue