summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-10-08 14:34:16 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-10-08 14:34:16 -0400
commit365f9c5503f1a9f8d685b91eb1175b7029058e3b (patch)
tree163edc3e290df9b305bf7a2c304ced9da5cc53e1 /roles
parent1dcda754100b8d3e35ccab6cd4c586c8f445f1ec (diff)
downloadopenshift-365f9c5503f1a9f8d685b91eb1175b7029058e3b.tar.gz
openshift-365f9c5503f1a9f8d685b91eb1175b7029058e3b.tar.bz2
openshift-365f9c5503f1a9f8d685b91eb1175b7029058e3b.tar.xz
openshift-365f9c5503f1a9f8d685b91eb1175b7029058e3b.zip
Fixed user media bug where we would update media when we really wanted to create.
Diffstat (limited to 'roles')
-rw-r--r--roles/lib_zabbix/library/zbx_user_media.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/lib_zabbix/library/zbx_user_media.py b/roles/lib_zabbix/library/zbx_user_media.py
index 9ed838f81..8895c78c3 100644
--- a/roles/lib_zabbix/library/zbx_user_media.py
+++ b/roles/lib_zabbix/library/zbx_user_media.py
@@ -260,6 +260,9 @@ def main():
for user in params['users']:
diff['users']['userid'] = user['userid']
+ # Medias have no real unique key so therefore we need to make it like the incoming user's request
+ diff['medias'] = medias
+
# We have differences and need to update
content = zapi.get_content(zbx_class_name, 'updatemedia', diff)