modernize code in controller resource
diff --git a/xos/tosca/resources/controller.py b/xos/tosca/resources/controller.py
index 75725f4..111dc01 100644
--- a/xos/tosca/resources/controller.py
+++ b/xos/tosca/resources/controller.py
@@ -15,15 +15,10 @@
class XOSController(XOSResource):
provides = "tosca.nodes.Controller"
xos_model = Controller
+ copyin_props = ["backend_type", "version", "auth_url", "admin_user", "admin_password", "admin_tenant", "domain"]
def get_xos_args(self):
- args = {"name": self.nodetemplate.name}
-
- # copy simple string properties from the template into the arguments
- for prop in ["backend_type", "version", "auth_url", "admin_user", "admin_password", "admin_tenant", "domain"]:
- v = self.get_property(prop)
- if v:
- args[prop] = v
+ args = super(XOSController, self).get_xos_args()
deployment_name = self.get_requirement("tosca.relationships.ControllerDeployment")
if deployment_name: