mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-11 16:44:22 -07:00
homectl, maven_artifact: removed redundant comments (#10620)
* homectl, maven_artifact: removed redundant comments * stacki_hosts: one more redundant comment
This commit is contained in:
parent
9155bc2e53
commit
a68ba50466
3 changed files with 3 additions and 5 deletions
|
@ -297,8 +297,6 @@ else:
|
||||||
|
|
||||||
|
|
||||||
class Homectl(object):
|
class Homectl(object):
|
||||||
'''#TODO DOC STRINGS'''
|
|
||||||
|
|
||||||
def __init__(self, module):
|
def __init__(self, module):
|
||||||
self.module = module
|
self.module = module
|
||||||
self.state = module.params['state']
|
self.state = module.params['state']
|
||||||
|
|
|
@ -630,7 +630,7 @@ def main():
|
||||||
password=dict(no_log=True, aliases=['aws_secret_access_key']),
|
password=dict(no_log=True, aliases=['aws_secret_access_key']),
|
||||||
headers=dict(type='dict'),
|
headers=dict(type='dict'),
|
||||||
force_basic_auth=dict(default=False, type='bool'),
|
force_basic_auth=dict(default=False, type='bool'),
|
||||||
state=dict(default="present", choices=["present", "absent"]), # TODO - Implement a "latest" state
|
state=dict(default="present", choices=["present", "absent"]),
|
||||||
timeout=dict(default=10, type='int'),
|
timeout=dict(default=10, type='int'),
|
||||||
dest=dict(type="path", required=True),
|
dest=dict(type="path", required=True),
|
||||||
validate_certs=dict(default=True, type='bool'),
|
validate_certs=dict(default=True, type='bool'),
|
||||||
|
@ -647,7 +647,7 @@ def main():
|
||||||
)
|
)
|
||||||
|
|
||||||
if module.params['unredirected_headers'] is None:
|
if module.params['unredirected_headers'] is None:
|
||||||
# if the user did not supply unredirected params, we use the default, ONLY on ansible core 2.12 and above
|
# if the user did not supply unredirected params, we use the default
|
||||||
module.params['unredirected_headers'] = ['Authorization', 'Cookie']
|
module.params['unredirected_headers'] = ['Authorization', 'Cookie']
|
||||||
|
|
||||||
if not HAS_LXML_ETREE:
|
if not HAS_LXML_ETREE:
|
||||||
|
|
|
@ -269,7 +269,7 @@ def main():
|
||||||
for param in ['appliance', 'rack', 'rank', 'prim_intf', 'prim_intf_ip', 'network', 'prim_intf_mac']:
|
for param in ['appliance', 'rack', 'rank', 'prim_intf', 'prim_intf_ip', 'network', 'prim_intf_mac']:
|
||||||
if not module.params[param]:
|
if not module.params[param]:
|
||||||
missing_params.append(param)
|
missing_params.append(param)
|
||||||
if len(missing_params) > 0: # @FIXME replace with required_if
|
if len(missing_params) > 0:
|
||||||
module.fail_json(msg="missing required arguments: {0}".format(missing_params))
|
module.fail_json(msg="missing required arguments: {0}".format(missing_params))
|
||||||
|
|
||||||
stacki.stack_add(result)
|
stacki.stack_add(result)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue