self.options = options
self.engine_rpcapi = engine_rpcapi.EngineAPI()
- def _stackid_format(self, resp):
+ @staticmethod
+ def _id_format(resp):
"""
Format the StackId field in the response as an ARN, and process other
IDs into the correct format.
if engine_api.STACK_DELETION_TIME in s:
result['DeletionTime'] = s[engine_api.STACK_DELETION_TIME]
- return self._stackid_format(result)
+ return self._id_format(result)
con = req.context
try:
'ParameterValue':v}
for (k, v) in result['Parameters'].items()]
- return self._stackid_format(result)
+ return self._id_format(result)
con = req.context
# If no StackName parameter is passed, we pass None into the engine
result['ResourceProperties'] = json.dumps(
result['ResourceProperties'])
- return self._stackid_format(result)
+ return self._id_format(result)
con = req.context
stack_name = req.params.get('StackName', None)
result = api_utils.reformat_dict_keys(keymap, r)
- return self._stackid_format(result)
+ return self._id_format(result)
con = req.context
result = api_utils.reformat_dict_keys(keymap, r)
- return self._stackid_format(result)
+ return self._id_format(result)
con = req.context
stack_name = req.params.get('StackName')