use dict keys appropriate for os_* module results
diff --git a/xos/synchronizers/openstack/steps/sync_controller_networks.py b/xos/synchronizers/openstack/steps/sync_controller_networks.py
index e83d3e3..e22ef01 100644
--- a/xos/synchronizers/openstack/steps/sync_controller_networks.py
+++ b/xos/synchronizers/openstack/steps/sync_controller_networks.py
@@ -78,8 +78,8 @@
return network_fields
def map_sync_outputs(self, controller_network,res):
- network_id = res[0]['openstack']
- subnet_id = res[1]['openstack']
+ network_id = res[0]['network']['id']
+ subnet_id = res[1]['subnet']['id']
controller_network.net_id = network_id
controller_network.subnet = self.cidr
controller_network.subnet_id = subnet_id
diff --git a/xos/synchronizers/openstack/steps/sync_controller_users.py b/xos/synchronizers/openstack/steps/sync_controller_users.py
index f5cb82c..0f6636e 100644
--- a/xos/synchronizers/openstack/steps/sync_controller_users.py
+++ b/xos/synchronizers/openstack/steps/sync_controller_users.py
@@ -59,7 +59,7 @@
return user_fields
def map_sync_outputs(self, controller_user, res):
- controller_user.kuser_id = res[0]['openstack']
+ controller_user.kuser_id = res[0]['user']['id']
controller_user.backend_status = '1 - OK'
controller_user.save()