def _delete_volume_response(response): if 'errortext' in response: helpers.error_to_aws(response, volume_error_to_aws) return { 'template_name_or_list': 'status.xml', 'response_type': 'DeleteVolumeResponse', 'return': 'true' }
def _attach_volume_response(response): if "errortext" in response: helpers.error_to_aws(response, volume_error_to_aws) response = response["volume"] return { "template_name_or_list": "volume_attachment.xml", "response_type": "AttachVolumeResponse", "response": response, }
def _create_volume_response(response): if 'errortext' in response: helpers.error_to_aws(response, volume_error_to_aws) response = response['volume'] return { 'template_name_or_list': 'create_volume.xml', 'response_type': 'CreateVolumeResponse', 'response': response }
def _detach_volume_response(response): if 'errortext' in response: helpers.error_to_aws(response, volume_error_to_aws) response = response['volume'] return { 'template_name_or_list': 'volume_attachment.xml', 'response_type': 'DetachVolumeResponse', 'response': response }
def _create_volume_response(response): if "errortext" in response: helpers.error_to_aws(response, volume_error_to_aws) response = response["volume"] return {"template_name_or_list": "create_volume.xml", "response_type": "CreateVolumeResponse", "response": response}
def _delete_volume_response(response): if "errortext" in response: helpers.error_to_aws(response, volume_error_to_aws) return {"template_name_or_list": "status.xml", "response_type": "DeleteVolumeResponse", "return": "true"}