return self._stackid_format(result)
con = req.context
- parms = dict(req.params)
-
try:
stack_list = self.engine_rpcapi.list_stacks(con)
except rpc_common.RemoteError as ex:
return self._stackid_format(result)
con = req.context
- parms = dict(req.params)
-
# If no StackName parameter is passed, we pass None into the engine
# this returns results for all stacks (visible to this user), which
# is the behavior described in the AWS DescribeStacks API docs
"""
con = req.context
- parms = dict(req.params)
-
- logger.info('get_template')
try:
identity = self._get_identity(con, req.params['StackName'])
templ = self.engine_rpcapi.get_template(con, identity)
"""
con = req.context
- parms = dict(req.params)
-
try:
templ = self._get_template(req)
except socket.gaierror:
Deletes the specified stack
"""
con = req.context
- parms = dict(req.params)
-
try:
identity = self._get_identity(con, req.params['StackName'])
res = self.engine_rpcapi.delete_stack(con, identity, cast=False)
return self._stackid_format(result)
con = req.context
- parms = dict(req.params)
-
stack_name = req.params.get('StackName', None)
try:
identity = stack_name and self._get_identity(con, stack_name)
'Dimensions': dimensions}}
try:
- res = self.engine_rpcapi.create_watch_data(con, watch_name, data)
+ self.engine_rpcapi.create_watch_data(con, watch_name, data)
except rpc_common.RemoteError as ex:
return exception.map_remote_error(ex)
logger.debug("setting %s to %s" % (name, state_map[state]))
try:
- ret = self.engine_rpcapi.set_watch_state(con, watch_name=name,
- state=state_map[state])
+ self.engine_rpcapi.set_watch_state(con, watch_name=name,
+ state=state_map[state])
except rpc_common.RemoteError as ex:
return exception.map_remote_error(ex)
# Assumption : root node is dict with single key
root = data.keys()[0]
eltree = etree.Element(root)
- doc = etree.ElementTree(eltree)
self.object_to_element(data.get(root), eltree)
response = etree.tostring(eltree)
logging.debug("XML response : %s" % response)