commit | 2b1f7f8dc8b5fd813a1debb2c6fca1d356009a0a | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@cs.arizona.edu> | Mon Aug 28 11:45:55 2017 -0700 |
committer | Zack Williams <zdw@cs.arizona.edu> | Mon Aug 28 11:45:55 2017 -0700 |
tree | 4d7565e7c3eaa0f4ae5340658945fc23373d843e | |
parent | faf2ab1facad701b69838fa77d5b8f5f683f9c22 [diff] |
[CORD-1812] Fix openstack synchronizer to work with more correct synchronizer code Change-Id: Iadfb5702edc00144b91ba89a1f4c7838c323ab37
diff --git a/xos/synchronizer/steps/sync_controller_sites.py b/xos/synchronizer/steps/sync_controller_sites.py index c0adc42..257ae76 100644 --- a/xos/synchronizer/steps/sync_controller_sites.py +++ b/xos/synchronizer/steps/sync_controller_sites.py
@@ -51,7 +51,7 @@ return tenant_fields def map_sync_outputs(self, controller_site, res): - controller_site.tenant_id = res[0]['id'] + controller_site.tenant_id = res[0]['project']['id'] controller_site.backend_status = '1 - OK' controller_site.save()
diff --git a/xos/synchronizer/steps/sync_controller_slices.py b/xos/synchronizer/steps/sync_controller_slices.py index 03c2361..a4cfd40 100644 --- a/xos/synchronizer/steps/sync_controller_slices.py +++ b/xos/synchronizer/steps/sync_controller_slices.py
@@ -61,7 +61,7 @@ return tenant_fields def map_sync_outputs(self, controller_slice, res): - tenant_id = res[0]['id'] + tenant_id = res[0]['project']['id'] if (not controller_slice.tenant_id): try: driver = self.driver.admin_driver(controller=controller_slice.controller)