fix boolean logic for overwrite parameter (#47916)

* fix boolean logic for overwrite parameter

* added changelog fragment
pull/48062/head
Abigail Howe 6 years ago committed by John R Barker
parent 57c9532cad
commit e8920a8357

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

@ -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']

Loading…
Cancel
Save