Пример #1
0
    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), ))
Пример #2
0
    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), ))
Пример #3
0
def add_deployment_network(auth, name):
    user = authenticate(username=auth.get('username'),
                        password=auth.get('password'))
    deployment = Deployment(name=name)
    deployment.save()
    return deployment
Пример #4
0
def add_deployment_network(auth, name):
    user = authenticate(username=auth.get("username"), password=auth.get("password"))
    deployment = Deployment(name=name)
    deployment.save()
    return deployment