mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Fix pycodestyle E117 issues.
This commit is contained in:
parent
7b8e814a10
commit
3e778d3f8f
40 changed files with 150 additions and 150 deletions
|
@ -272,13 +272,13 @@ def main():
|
|||
commands, parents = state_absent(module, existing, proposed)
|
||||
|
||||
if commands:
|
||||
candidate = CustomNetworkConfig(indent=3)
|
||||
candidate.add(commands, parents=parents)
|
||||
candidate = candidate.items_text()
|
||||
if not module.check_mode:
|
||||
load_config(module, candidate)
|
||||
results['changed'] = True
|
||||
results['commands'] = candidate
|
||||
candidate = CustomNetworkConfig(indent=3)
|
||||
candidate.add(commands, parents=parents)
|
||||
candidate = candidate.items_text()
|
||||
if not module.check_mode:
|
||||
load_config(module, candidate)
|
||||
results['changed'] = True
|
||||
results['commands'] = candidate
|
||||
else:
|
||||
results['commands'] = []
|
||||
module.exit_json(**results)
|
||||
|
|
|
@ -383,15 +383,15 @@ def config_igmp_interface(delta, existing, existing_oif_prefix_source):
|
|||
commands.append(CMDS.get('oif_prefix').format(pf))
|
||||
if existing_oif_prefix_source:
|
||||
for each in existing_oif_prefix_source:
|
||||
# remove stale prefix/sources
|
||||
pf = each['prefix']
|
||||
src = ''
|
||||
if 'source' in each.keys():
|
||||
src = each['source']
|
||||
if src:
|
||||
commands.append('no ' + CMDS.get('oif_prefix_source').format(pf, src))
|
||||
else:
|
||||
commands.append('no ' + CMDS.get('oif_prefix').format(pf))
|
||||
# remove stale prefix/sources
|
||||
pf = each['prefix']
|
||||
src = ''
|
||||
if 'source' in each.keys():
|
||||
src = each['source']
|
||||
if src:
|
||||
commands.append('no ' + CMDS.get('oif_prefix_source').format(pf, src))
|
||||
else:
|
||||
commands.append('no ' + CMDS.get('oif_prefix').format(pf))
|
||||
elif key == 'oif_routemap':
|
||||
if value == 'default':
|
||||
if existing.get(key):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue