Skip to content

Commit fe21ab4

Browse files
committed
Allow retrieving bucket regions from storage configuration katta-server.
1 parent cc433fd commit fe21ab4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hub/src/main/java/cloud/katta/model/StorageProfileDtoWrapper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ else if(proxy.getActualInstance() instanceof StorageProfileS3STSDto) {
136136

137137
public List<String> getRegions() {
138138
if(proxy.getActualInstance() instanceof StorageProfileS3StaticDto) {
139-
// only STS
140-
return null;
139+
return ((StorageProfileS3StaticDto) proxy.getActualInstance()).getRegions();
141140
}
142141
else if(proxy.getActualInstance() instanceof StorageProfileS3STSDto) {
143142
return ((StorageProfileS3STSDto) proxy.getActualInstance()).getRegions();

0 commit comments

Comments
 (0)