Skip to content

Commit

Permalink
Renamed method, removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aboisier committed Mar 7, 2019
1 parent fa300cf commit 939ae60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ScoutSuite/providers/aws/resources/efs/service.py
Expand Up @@ -7,14 +7,12 @@ class FileSystems(AWSResources):
async def fetch_all(self, **kwargs):
raw_file_systems = self.facade.efs.get_file_systems(self.scope['region'])
for raw_file_system in raw_file_systems:
name, resource = self._parse(raw_file_system)
name, resource = self._parse_file_system(raw_file_system)
self[name] = resource

def _parse(self, raw_file_system):
def _parse_file_system(self, raw_file_system):
fs_id = raw_file_system.pop('FileSystemId')
raw_file_system['name'] = raw_file_system.pop('Name') if 'Name' in raw_file_system else None

# Get tags
raw_file_system['tags'] = raw_file_system.pop('Tags')

return fs_id, raw_file_system
Expand Down

0 comments on commit 939ae60

Please sign in to comment.