in source/api/app.py [0:0]
def list_filesystems():
"""
Lists all EFS filesystems in the account
:returns: Object containing filesystems
:raises ChaliceViewError
"""
try:
response = EFS.describe_file_systems()
except botocore.exceptions.ClientError as error:
app.log.error(error)
raise ChaliceViewError("Check API logs")
else:
filesystems = response['FileSystems']
formatted_filesystems = []
for filesystem in filesystems:
try:
formatted = format_filesystem_response(filesystem)
except botocore.exceptions.ClientError as error:
app.log.error(error)
raise ChaliceViewError("Check API logs")
else:
formatted_filesystems.append(formatted)
return formatted_filesystems