Make compatible with python
Removed one line if else
This commit is contained in:
parent
180fb13b28
commit
4882f2bbbe
1 changed files with 4 additions and 1 deletions
|
@ -150,7 +150,10 @@ def main():
|
|||
details = r.text
|
||||
)
|
||||
|
||||
changeRequired = not exchangeExists if module.params['state']=='present' else exchangeExists
|
||||
if module.params['state']=='present':
|
||||
changeRequired = not exchangeExists
|
||||
else:
|
||||
changeRequired = exchangeExists
|
||||
|
||||
# Check if attributes change on existing exchange
|
||||
if not changeRequired and r.status_code==200 and module.params['state'] == 'present':
|
||||
|
|
Loading…
Reference in a new issue