summaryrefslogtreecommitdiffstats
path: root/roles/lib_zabbix/library
diff options
context:
space:
mode:
authorJoel Diaz <jdiaz@redhat.com>2016-02-10 16:34:26 -0500
committerJoel Diaz <jdiaz@redhat.com>2016-02-10 16:34:26 -0500
commitff6088c661af6e1854fcb27feddf386db85b3cd4 (patch)
tree99e3a04e8ecca1ac3fafc367220015f24d192cdc /roles/lib_zabbix/library
parent6cfd6326790b9bc9978a8bbc2f6375817c467176 (diff)
parent7b4c29e5d367bed40b0c2634e811bf71bbff3bf4 (diff)
downloadopenshift-ff6088c661af6e1854fcb27feddf386db85b3cd4.tar.gz
openshift-ff6088c661af6e1854fcb27feddf386db85b3cd4.tar.bz2
openshift-ff6088c661af6e1854fcb27feddf386db85b3cd4.tar.xz
openshift-ff6088c661af6e1854fcb27feddf386db85b3cd4.zip
Merge pull request #1380 from joelddiaz/zbx-action-user-diff
use correct dict key
Diffstat (limited to 'roles/lib_zabbix/library')
-rw-r--r--roles/lib_zabbix/library/zbx_action.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_zabbix/library/zbx_action.py b/roles/lib_zabbix/library/zbx_action.py
index c388a65cc..e7edcde2f 100644
--- a/roles/lib_zabbix/library/zbx_action.py
+++ b/roles/lib_zabbix/library/zbx_action.py
@@ -120,8 +120,8 @@ def opmessage_usr_diff(zab_val, user_val):
''' Report whether there are differences between opmessage_usr
on zabbix and opmessage_usr supplied by user '''
- zab_usr_ids = set([usr['usrid'] for usr in zab_val])
- usr_ids = set([usr['usrid'] for usr in user_val])
+ zab_usr_ids = set([usr['userid'] for usr in zab_val])
+ usr_ids = set([usr['userid'] for usr in user_val])
if usr_ids != zab_usr_ids:
return True