Fixing two tiny bugs in keystone module. The hasattr() was used with a dict instead of an object. New change uses the getattr() call which is IMHO safer
Merge pull request #9561 from rhormaza/bugfix/keystone-module-hasattr-issue

Fixing two tiny bugs in keystone module.