mixcoatl/automation/configuration_management_service.py
def create(self):
        """Creates a new CM service."""
        parms = [{"budget": self.budget,
                  "serviceEndpoint": self.endpoint,
                  "description": self.description,
                  "name": self.name,
                  "label": "red",
                  "cmSystem": {"cmSystemID": self.cm_system_id}}]

        payload = {"addService": camel_keys(parms)}
        print json.dumps(payload)

        response = self.post(data=json.dumps(payload))
        if self.last_error is None:
            self.load()
            return response
        else:
            raise CMCreationException(self.last_error)
Creates a new CM service.
Creates a new CM service.
Creates a new CM service .
def create(self):
        parms = [{"budget": self.budget,
                  "serviceEndpoint": self.endpoint,
                  "description": self.description,
                  "name": self.name,
                  "label": "red",
                  "cmSystem": {"cmSystemID": self.cm_system_id}}]
        payload = {"addService": camel_keys(parms)}
        print json.dumps(payload)
        response = self.post(data=json.dumps(payload))
        if self.last_error is None:
            self.load()
            return response
        else:
            raise CMCreationException(self.last_error)
def create ( self ) : parms = [ { "budget" : self . budget , "serviceEndpoint" : self . endpoint , "description" : self . description , "name" : self . name , "label" : "red" , "cmSystem" : { "cmSystemID" : self . cm_system_id } } ] payload = { "addService" : camel_keys ( parms ) } print json . dumps ( payload ) response = self . post ( data = json . dumps ( payload ) ) if self . last_error is None : self . load ( ) return response else : raise CMCreationException ( self . last_error )
Creates a new CM service.
Creates a new CM service .
"""Creates a new CM service."""
self