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
|
@Override
|
||||||
public ContainerAccess getContainerAccess(String container) {
|
public ContainerAccess getContainerAccess(String container) {
|
||||||
PublicAccess access = sync.getPublicAccessForContainer(container);
|
PublicAccess access = sync.getPublicAccessForContainer(container);
|
||||||
if (access == PublicAccess.BLOB) {
|
if (access == PublicAccess.CONTAINER) {
|
||||||
return ContainerAccess.PUBLIC_READ;
|
return ContainerAccess.PUBLIC_READ;
|
||||||
} else {
|
} else {
|
||||||
return ContainerAccess.PRIVATE;
|
return ContainerAccess.PRIVATE;
|
||||||
|
@ -364,7 +364,7 @@ public class AzureBlobStore extends BaseBlobStore {
|
||||||
public void setContainerAccess(String container, ContainerAccess access) {
|
public void setContainerAccess(String container, ContainerAccess access) {
|
||||||
PublicAccess publicAccess;
|
PublicAccess publicAccess;
|
||||||
if (access == ContainerAccess.PUBLIC_READ) {
|
if (access == ContainerAccess.PUBLIC_READ) {
|
||||||
publicAccess = PublicAccess.BLOB;
|
publicAccess = PublicAccess.CONTAINER;
|
||||||
} else {
|
} else {
|
||||||
publicAccess = PublicAccess.PRIVATE;
|
publicAccess = PublicAccess.PRIVATE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue