File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,12 @@ if {[info exists sid] && [check_session $sid]} {
4141 array set res [rega_script " Write(dom.GetObject($ise_id ).State('$new_value '));" ]
4242
4343 if {$res(STDOUT) != " null" } {
44- puts -nonewline " <changed id=\" $ise_id \" new_value=\" $new_value \" />" ;
44+ if {$res(STDOUT) == " true" } {
45+ set success " true"
46+ } else {
47+ set success " false"
48+ }
49+ puts -nonewline " <changed id=\" $ise_id \" new_value=\" $new_value \" success=\" $success \" />" ;
4550 } else {
4651 puts -nonewline " <not_found />" ;
4752 }
@@ -62,7 +67,12 @@ if {[info exists sid] && [check_session $sid]} {
6267 array set res [rega_script " Write(dom.GetObject([ lindex $rec_ise_id $x ] ).State('[ lindex $rec_new_value $x ] '));" ]
6368
6469 if {$res(STDOUT) != " null" } {
65- puts -nonewline " <changed id=\" [ lindex $rec_ise_id $x ] \" new_value=\" [ lindex $rec_new_value $x ] \" />" ;
70+ if {$res(STDOUT) == " true" } {
71+ set success " true"
72+ } else {
73+ set success " false"
74+ }
75+ puts -nonewline " <changed id=\" [ lindex $rec_ise_id $x ] \" new_value=\" [ lindex $rec_new_value $x ] \" success=\" $success \" />" ;
6676 } else {
6777 puts -nonewline " <not_found />" ;
6878 }
You can’t perform that action at this time.
0 commit comments