Make compatible with python

Removed one line if else
This commit is contained in:
Manuel Sousa 2015-05-14 15:30:10 +01:00 committed by Matt Clay
parent b5732b0011
commit 4c301bda5c

View file

@ -130,7 +130,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':