File tree 1 file changed +12
-2
lines changed
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]} {
41
41
array set res [rega_script " Write(dom.GetObject($ise_id ).State('$new_value '));" ]
42
42
43
43
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 \" />" ;
45
50
} else {
46
51
puts -nonewline " <not_found />" ;
47
52
}
@@ -62,7 +67,12 @@ if {[info exists sid] && [check_session $sid]} {
62
67
array set res [rega_script " Write(dom.GetObject([ lindex $rec_ise_id $x ] ).State('[ lindex $rec_new_value $x ] '));" ]
63
68
64
69
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 \" />" ;
66
76
} else {
67
77
puts -nonewline " <not_found />" ;
68
78
}
You can’t perform that action at this time.
0 commit comments