Skip to content

Commit

Permalink
chore(fsx): Add default value for copytags
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRgzLpz committed Oct 15, 2024
1 parent 1b1c447 commit 88f5f01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prowler/providers/aws/services/fsx/fsx_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ def _describe_file_systems(self, regional_client):
if type == "LUSTRE":
copy_tags_to_backups_aux = file_system.get(
"LustreConfiguration", {"CopyTagsToBackups": False}
).get("CopyTagsToBackups")
).get("CopyTagsToBackups", False)
elif type == "WINDOWS":
copy_tags_to_backups_aux = file_system.get(

Check warning on line 37 in prowler/providers/aws/services/fsx/fsx_service.py

View check run for this annotation

Codecov / codecov/patch

prowler/providers/aws/services/fsx/fsx_service.py#L36-L37

Added lines #L36 - L37 were not covered by tests
"WindowsConfiguration", {"CopyTagsToBackups": False}
).get("CopyTagsToBackups")
).get("CopyTagsToBackups", False)
elif type == "OPENZFS":
copy_tags_to_backups_aux = file_system.get(

Check warning on line 41 in prowler/providers/aws/services/fsx/fsx_service.py

View check run for this annotation

Codecov / codecov/patch

prowler/providers/aws/services/fsx/fsx_service.py#L40-L41

Added lines #L40 - L41 were not covered by tests
"OpenZFSConfiguration", {"CopyTagsToBackups": False}
).get("CopyTagsToBackups")
).get("CopyTagsToBackups", False)
copy_tags_to_volumes_aux = file_system.get(

Check warning on line 44 in prowler/providers/aws/services/fsx/fsx_service.py

View check run for this annotation

Codecov / codecov/patch

prowler/providers/aws/services/fsx/fsx_service.py#L44

Added line #L44 was not covered by tests
"OpenZFSConfiguration", {"CopyTagsToVolumes": False}
).get("CopyTagsToVolumes")
).get("CopyTagsToVolumes", False)

self.file_systems[file_system_arn] = FileSystem(
id=file_system["FileSystemId"],
Expand Down

0 comments on commit 88f5f01

Please sign in to comment.