fix boolean logic for overwrite parameter (#47916)
* fix boolean logic for overwrite parameter * added changelog fragment
This commit is contained in:
parent
57c9532cad
commit
e8920a8357
2 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue