Fix handling options for mitaka,newton
keystone user options field was added in ocata add a check
if API supports options before start working with them.
Change-Id: Ic1f04275297871483b86681dc2e3895d0ca404f9
Related-Prod: PROD-29370
diff --git a/_states/keystoneng.py b/_states/keystoneng.py
index 36a0d52..fed7415 100644
--- a/_states/keystoneng.py
+++ b/_states/keystoneng.py
@@ -207,7 +207,7 @@
if options:
options_to_update = {option: options[option] for option in options
- if (option not in user[name]['options'])
+ if (option not in user[name].get('options', {}))
or (options[option] != user[name]['options'][option])}
if len(options_to_update):