File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ export class Message {
547547 containers : [
548548 {
549549 name : 'nodered' ,
550- image : 'cloudhack/openflownodered:0.0.202 ' ,
550+ image : 'cloudhack/openflownodered:0.0.206 ' ,
551551 imagePullPolicy : "Always" ,
552552 env : [
553553 { name : "saml_federation_metadata" , value : Config . saml_federation_metadata } ,
@@ -713,6 +713,12 @@ export class Message {
713713 this . data = "" ;
714714 msg . error = JSON . stringify ( error , null , 2 ) ;
715715 }
716+ try {
717+ this . data = JSON . stringify ( msg ) ;
718+ } catch ( error ) {
719+ this . data = "" ;
720+ msg . error = error . toString ( ) ;
721+ }
716722 this . Send ( cli ) ;
717723 }
718724 private async GetNoderedInstance ( cli : WebSocketClient ) : Promise < void > {
@@ -746,6 +752,12 @@ export class Message {
746752 this . data = "" ;
747753 msg . error = JSON . stringify ( error , null , 2 ) ;
748754 }
755+ try {
756+ this . data = JSON . stringify ( msg ) ;
757+ } catch ( error ) {
758+ this . data = "" ;
759+ msg . error = error . toString ( ) ;
760+ }
749761 this . Send ( cli ) ;
750762 }
751763 private async StartNoderedInstance ( cli : WebSocketClient ) : Promise < void > {
Original file line number Diff line number Diff line change @@ -189,7 +189,6 @@ module openflow {
189189 var q : GetNoderedInstanceMessage = new GetNoderedInstanceMessage ( ) ;
190190 var msg : Message = new Message ( ) ; msg . command = "getnoderedinstance" ; msg . data = JSON . stringify ( q ) ;
191191 q = await this . WebSocketClient . Send < GetNoderedInstanceMessage > ( msg ) ;
192- console . log ( q ) ;
193192 return q . result ;
194193 }
195194 async EnsureNoderedInstance ( ) : Promise < void > {
Original file line number Diff line number Diff line change 1- 0.0.205
1+ 0.0.206
You can’t perform that action at this time.
0 commit comments