Skip to content

Commit 92f9d9b

Browse files
committed
204
1 parent 8abe226 commit 92f9d9b

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

OpenFlow/src/Messages/Message.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,15 @@ export class Message {
730730
// var hostname = Config.nodered_domain_schema.replace("$nodered_id$", name);
731731

732732
var list = await KubeUtil.instance().CoreV1Api.listNamespacedPod(namespace);
733+
733734
if (list.body.items.length > 0) {
734-
msg.result = list.body.items[0];
735+
var item = list.body.items[i];
736+
if (item.metadata.labels.app === (name + "nodered")) {
737+
msg.result = item;
738+
cli._logger.debug("GetNoderedInstance:" + name + " found one");
739+
}
740+
} else {
741+
cli._logger.warn("GetNoderedInstance: found NO Namespaced Pods ???");
735742
}
736743
} catch (error) {
737744
this.data = "";

OpenFlow/src/public/Controllers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,7 @@ module openflow {
15721572
await api.RegisterQueue();
15731573
this.noderedurl = "https://" + WebSocketClient.nodered_domain_schema.replace("$nodered_id$", WebSocketClient.user.username);
15741574
this.instance = await api.GetNoderedInstance();
1575+
console.log("GetNoderedInstance:");
15751576
console.log(this.instance);
15761577
if (!this.$scope.$$phase) { this.$scope.$apply(); }
15771578
});

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.203
1+
0.0.204

0 commit comments

Comments
 (0)