island: Pass int, not str to has_expected_permissions()

This commit is contained in:
Mike Salvatore 2021-06-09 13:55:48 -04:00
parent 5aaa844289
commit 7fe10af1b2
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def _raise_if_incorrect_permissions(
f: str, linux_expected_permissions: int, windows_expected_permissions: int
):
expected_permissions = (
windows_expected_permissions if is_windows_os() else oct(linux_expected_permissions)
windows_expected_permissions if is_windows_os() else linux_expected_permissions
)
if not has_expected_permissions(f, expected_permissions):
raise InsecurePermissionsError(