Просмотр исходного кода

default to root network if no network set up

tags/v0.9.12
Jonathan Cobb 4 лет назад
Родитель
Сommit
f5d4652754
1 измененных файлов: 4 добавлений и 1 удалений
  1. +4
    -1
      bubble-server/src/main/java/bubble/service/cloud/StandardStorageService.java

+ 4
- 1
bubble-server/src/main/java/bubble/service/cloud/StandardStorageService.java Просмотреть файл

@@ -4,6 +4,7 @@
*/ */
package bubble.service.cloud; package bubble.service.cloud;


import bubble.ApiConstants;
import bubble.cloud.storage.StorageServiceDriver; import bubble.cloud.storage.StorageServiceDriver;
import bubble.dao.cloud.CloudServiceDAO; import bubble.dao.cloud.CloudServiceDAO;
import bubble.model.cloud.CloudService; import bubble.model.cloud.CloudService;
@@ -44,7 +45,9 @@ public class StandardStorageService implements StorageService {
} }
} }


private String thisNodeId() { return configuration.getThisNode() != null ? configuration.getThisNode().getUuid() : null; }
private String thisNodeId() {
return configuration.getThisNode() != null ? configuration.getThisNode().getUuid() : ApiConstants.ROOT_NETWORK_UUID;
}


public boolean exists(String account, String uri) { public boolean exists(String account, String uri) {
final StorageTarget target = new StorageTarget(account, uri); final StorageTarget target = new StorageTarget(account, uri);


Загрузка…
Отмена
Сохранить