fix boolean logic for overwrite parameter (#47916)

* fix boolean logic for overwrite parameter

* added changelog fragment
This commit is contained in:
Abigail Howe 2018-11-05 12:59:01 +00:00 committed by John R Barker
parent 57c9532cad
commit e8920a8357
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "reverted change in af55b8e which caused the overwrite parameter to be ignored"

View file

@ -256,7 +256,7 @@ def grafana_create_dashboard(module, data):
result['changed'] = False
else:
# update
if 'overwrite' in data and data['overwrite'] == 'yes':
if 'overwrite' in data and data['overwrite']:
payload['overwrite'] = True
if 'message' in data and data['message']:
payload['message'] = data['message']