do not sync objects for deployments that are not configured
diff --git a/planetstack/openstack_observer/steps/sync_slice_deployments.py b/planetstack/openstack_observer/steps/sync_slice_deployments.py
index fff2e04..03ea2ca 100644
--- a/planetstack/openstack_observer/steps/sync_slice_deployments.py
+++ b/planetstack/openstack_observer/steps/sync_slice_deployments.py
@@ -42,6 +42,11 @@
def sync_record(self, slice_deployment):
logger.info("sync'ing slice deployment %s" % slice_deployment)
+
+ if not slice_deployment.deployment.admin_user:
+ logger.info("deployment %r has no admin_user, skipping" % slice_deployment.deployment)
+ return
+
if not slice_deployment.tenant_id:
nova_fields = {'tenant_name': slice_deployment.slice.name,
'description': slice_deployment.slice.description,