fix bug when bringing up compute without image specified
diff --git a/xos/tosca/resources/compute.py b/xos/tosca/resources/compute.py
index 1d3e0ad..37ba390 100644
--- a/xos/tosca/resources/compute.py
+++ b/xos/tosca/resources/compute.py
@@ -61,7 +61,8 @@
self.info("colocating on %s" % colocate_host)
imageName = self.get_requirement("tosca.relationships.UsesImage", throw_exception=False)
- image = self.get_xos_object(Image, name=imageName)
+ if imageName:
+ image = self.get_xos_object(Image, name=imageName)
capabilities = nodetemplate.get_capabilities()
for (k,v) in capabilities.items():