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), ))