From ecd00d35ae9cf9516013c418e660860980f9689d Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Wed, 22 Oct 2014 01:17:05 -0400 Subject: [PATCH] Bug fix in specifying networks for sync_slivers --- planetstack/openstack_observer/steps/sync_slivers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planetstack/openstack_observer/steps/sync_slivers.py b/planetstack/openstack_observer/steps/sync_slivers.py index 7c572d1..4f33bba 100644 --- a/planetstack/openstack_observer/steps/sync_slivers.py +++ b/planetstack/openstack_observer/steps/sync_slivers.py @@ -51,7 +51,7 @@ class SyncSlivers(OpenStackSyncStep): for network_deployment in network_deployments: if network_deployment.network.template.visibility == 'private' and \ network_deployment.network.template.translation == 'none' and network_deployment.net_id: - nics.append({'net-id': network_deployment.net_id}) + nics.append(network_deployment.net_id) # now include network template network_templates = [network.template.sharedNetworkName for network in networks \ @@ -62,7 +62,7 @@ class SyncSlivers(OpenStackSyncStep): nets = driver.shell.quantum.list_networks()['networks'] for net in nets: if net['name'] in network_templates: - nics.append({'net-id': net['id']}) + nics.append(net['id']) if (not nics): for net in nets: -- 2.43.0