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 21c4bf0 commit dc2d01fCopy full SHA for dc2d01f
1 file changed
s3cmd
@@ -2174,11 +2174,11 @@ def cmd_sync(args):
2174
def cmd_getacl(args):
2175
cfg = Config()
2176
s3 = S3(cfg)
2177
- if len(args) != 1:
2178
- raise ParameterError("Too few parameters! Expected: <bucket>")
2179
- if not S3Uri(args[0]).has_bucket():
2180
- raise ParameterError("Invalid bucket name: '%s'" % args[0])
2181
uri = S3Uri(args[0])
+
+ if uri.type != "s3" or not uri.has_bucket():
+ raise ParameterError("Expecting S3 URI instead of '%s'" % args[0])
2182
try:
2183
acl = s3.get_acl(uri)
2184
acl_grant_list = acl.getGrantList()
0 commit comments