We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc5c773 commit f984dd7Copy full SHA for f984dd7
policy_sentry/util/arns.py
@@ -135,10 +135,7 @@ def same_resource_type(self, arn_in_database):
135
logger.debug("Special type: %s", resource_path_arn_in_database)
136
# handling special case table/${TableName}
137
if resource_string_arn_in_database in ["table/${TableName}", "${BucketName}"]:
138
- if len(self.resource_string.split('/')) == len(elements[5].split('/')):
139
- return True
140
- else:
141
- return False
+ return len(self.resource_string.split('/')) == len(elements[5].split('/'))
142
# If we've made it this far, then it is a special type
143
# return True
144
# Presence of / would mean it's an object in both so it matches
0 commit comments