mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Manually fix issues that autopep8 introduced
* iam.py 161 -> 160 chars * lamba -> single line function -> multiline function Avoid redefining key iam line length iam.py now clean
This commit is contained in:
parent
c57a7f05e1
commit
10cd2cd1b7
11 changed files with 31 additions and 26 deletions
|
@ -175,11 +175,14 @@ def map_obj_to_commands(updates, module):
|
|||
for update in updates:
|
||||
want, have = update
|
||||
|
||||
def needs_update(x): return want.get(x) and (want.get(x) != have.get(x))
|
||||
def needs_update(x):
|
||||
return want.get(x) and (want.get(x) != have.get(x))
|
||||
|
||||
def add(x): return commands.append('username %s %s' % (want['name'], x))
|
||||
def add(x):
|
||||
return commands.append('username %s %s' % (want['name'], x))
|
||||
|
||||
def remove(x): return commands.append('no username %s %s' % (want['name'], x))
|
||||
def remove(x):
|
||||
return commands.append('no username %s %s' % (want['name'], x))
|
||||
|
||||
if want['state'] == 'absent':
|
||||
commands.append('no username %s' % want['name'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue