Get domain_id instead of name for user_create call

For addition of user into given domain keystone's user_create
API call requires domain_id option.

Change-Id: Id32cc8d16193a388137f34cab2afa2fb58e9be80
Closes-Bug: PROD-26684
diff --git a/_states/keystonev3.py b/_states/keystonev3.py
index 2dd651d..a9a2ccd 100644
--- a/_states/keystonev3.py
+++ b/_states/keystonev3.py
@@ -237,6 +237,11 @@
              'project_get_details', kwargs['default_project_id'],
              cloud_name=cloud_name)['project']['id']
 
+    if 'domain_id' in kwargs:
+        kwargs['domain_id'] = _keystonev3_call(
+            'domain_get_details', kwargs['domain_id'],
+            cloud_name=cloud_name)['domain']['id']
+
     if not users:
         try:
             resp = _keystonev3_call(