mirror of https://github.com/apache/jclouds.git
Map PublicAccess.CONTAINER to PUBLIC_READ
This better matches the semantics of other providers and allows clients to list a publicly readable container.
This commit is contained in:
parent
77eef902b4
commit
e50bd79f01
|
@ -353,7 +353,7 @@ public class AzureBlobStore extends BaseBlobStore {
|
|||
@Override
|
||||
public ContainerAccess getContainerAccess(String container) {
|
||||
PublicAccess access = sync.getPublicAccessForContainer(container);
|
||||
if (access == PublicAccess.BLOB) {
|
||||
if (access == PublicAccess.CONTAINER) {
|
||||
return ContainerAccess.PUBLIC_READ;
|
||||
} else {
|
||||
return ContainerAccess.PRIVATE;
|
||||
|
@ -364,7 +364,7 @@ public class AzureBlobStore extends BaseBlobStore {
|
|||
public void setContainerAccess(String container, ContainerAccess access) {
|
||||
PublicAccess publicAccess;
|
||||
if (access == ContainerAccess.PUBLIC_READ) {
|
||||
publicAccess = PublicAccess.BLOB;
|
||||
publicAccess = PublicAccess.CONTAINER;
|
||||
} else {
|
||||
publicAccess = PublicAccess.PRIVATE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue