Procházet zdrojové kódy

disable app priming in test mode

tags/v0.12.4
Jonathan Cobb před 4 roky
rodič
revize
0a4b9c470f
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. +5
    -2
      bubble-server/src/main/java/bubble/service/stream/StandardAppPrimerService.java

+ 5
- 2
bubble-server/src/main/java/bubble/service/stream/StandardAppPrimerService.java Zobrazit soubor

@@ -47,13 +47,16 @@ public class StandardAppPrimerService implements AppPrimerService {
@Getter(lazy=true) private final boolean primingEnabled = initPrimingEnabled();
private boolean initPrimingEnabled() {
if (configuration == null) return die("initPrimingEnabled: configuration was null");
if (configuration.testMode()) {
log.info("initPrimingEnabled: configuration.testMode is true, not priming");
}
final BubbleNetwork thisNetwork = configuration.getThisNetwork();
if (thisNetwork == null) {
log.info("primeApps: thisNetwork is null, not priming");
log.info("initPrimingEnabled: thisNetwork is null, not priming");
return false;
}
if (thisNetwork.getInstallType() != AnsibleInstallType.node) {
log.info("primeApps: thisNetwork is not a node, not priming");
log.info("initPrimingEnabled: thisNetwork is not a node, not priming");
return false;
}
return true;


Načítá se…
Zrušit
Uložit