mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
check availability of config node on deploy
This commit is contained in:
parent
720a163273
commit
828888490a
@ -333,6 +333,16 @@ RED.deploy = (function() {
|
|||||||
var unknownNodes = [];
|
var unknownNodes = [];
|
||||||
var invalidNodes = [];
|
var invalidNodes = [];
|
||||||
|
|
||||||
|
RED.nodes.eachConfig(function(node) {
|
||||||
|
if (!node.valid && !node.d) {
|
||||||
|
invalidNodes.push(getNodeInfo(node));
|
||||||
|
}
|
||||||
|
if (node.type === "unknown") {
|
||||||
|
if (unknownNodes.indexOf(node.name) == -1) {
|
||||||
|
unknownNodes.push(node.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
RED.nodes.eachNode(function(node) {
|
RED.nodes.eachNode(function(node) {
|
||||||
if (!node.valid && !node.d) {
|
if (!node.valid && !node.d) {
|
||||||
invalidNodes.push(getNodeInfo(node));
|
invalidNodes.push(getNodeInfo(node));
|
||||||
|
Loading…
Reference in New Issue
Block a user