Simplify repetitive unequal checks
Simplify repetitive unequal checks

An if statement with multiple unequal comparisons for the same variable
can be written with a list. This is more elegant and increases
readability.

Change-Id: I3cdf7af1c8b872e943be1d438663b1fc112fc19c

klmitch/keystone,rajalokan/keystone,cernops/keystone,openstack/keystone,rajalokan/keystone,rajalokan/keystone,ilay09/keystone,openstack/keystone,openstack/keystone,mahak/keystone,mahak/keystone,cernops/keystone,ilay09/keystone,ilay09/keystone,mahak/keystone,klmitch/keystone