update code in compute.py resource to match other resource pattern
diff --git a/xos/tosca/resources/compute.py b/xos/tosca/resources/compute.py
index c6574ba..66c2295 100644
--- a/xos/tosca/resources/compute.py
+++ b/xos/tosca/resources/compute.py
@@ -41,6 +41,8 @@
if not name:
name = nodetemplate.name
+ args = {"name": name}
+
host=None
flavor=None
image=None
@@ -72,12 +74,13 @@
if not flavor:
raise Exception("Failed to pick a flavor")
- return {"name": name,
- "image": image,
- "slice": slice,
- "flavor": flavor,
- "node": compute_node,
- "deployment": compute_node.site_deployment.deployment}
+ args["image"] = image
+ args["slice"] = slice
+ args["flavor"] = flavor
+ args["node"] = compute_node
+ args["deployment"] = compute_node.site_deployment.d
+
+ return args
def create(self, name = None, index = None):
xos_args = self.get_xos_args(name=name, index=index)