def create(self): xos_args = self.get_xos_args() slice = Deployment(**xos_args) slice.caller = self.user slice.save() self.info("Created Deployment '%s'" % (str(slice), ))
def add_deployment_network(auth, name): user = authenticate(username=auth.get('username'), password=auth.get('password')) deployment = Deployment(name=name) deployment.save() return deployment
def add_deployment_network(auth, name): user = authenticate(username=auth.get("username"), password=auth.get("password")) deployment = Deployment(name=name) deployment.save() return deployment