diff options
author | Joel Diaz <jdiaz@redhat.com> | 2016-02-10 16:28:54 -0500 |
---|---|---|
committer | Joel Diaz <jdiaz@redhat.com> | 2016-02-10 16:28:54 -0500 |
commit | 7b4c29e5d367bed40b0c2634e811bf71bbff3bf4 (patch) | |
tree | 99e3a04e8ecca1ac3fafc367220015f24d192cdc | |
parent | 6cfd6326790b9bc9978a8bbc2f6375817c467176 (diff) | |
download | openshift-7b4c29e5d367bed40b0c2634e811bf71bbff3bf4.tar.gz openshift-7b4c29e5d367bed40b0c2634e811bf71bbff3bf4.tar.bz2 openshift-7b4c29e5d367bed40b0c2634e811bf71bbff3bf4.tar.xz openshift-7b4c29e5d367bed40b0c2634e811bf71bbff3bf4.zip |
use correct dict key
-rw-r--r-- | roles/lib_zabbix/library/zbx_action.py | 4 |
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 |