Abort deployment if no cloud given in dsl message.
We need at least one cloud id with status `enabled` to deploy. Change-Id: I1abd2b46f304ffe77c37a29e1656ee62c5e5211c
This commit is contained in:
parent
b7a890f93f
commit
3047b7bf6b
@ -301,9 +301,11 @@ public class NebulousApp {
|
|||||||
.map((c) -> c.get("uuid").asText())
|
.map((c) -> c.get("uuid").asText())
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
if (cloudIDs.isEmpty()) {
|
if (cloudIDs.isEmpty()) {
|
||||||
log.warn("No clouds enabled or specified in app creation message, will try to deploy only on edge nodes.");
|
log.error("No enabled clouds given in app creation message, setting app status to FAILED and aborting deployment.");
|
||||||
|
this.setStateFailed();
|
||||||
|
} else {
|
||||||
|
log.debug("New App instantiated.");
|
||||||
}
|
}
|
||||||
log.debug("New App instantiated.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user