Skip to content

Commit

Permalink
handle ansible errors properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-moody committed Apr 16, 2017
1 parent dfcbb53 commit 27fa93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/xsce-admin/templates/console/cmd-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
$time_end = microtime(true);
$time = $time_end - $time_start;

if( strpos( $reply, "Error" ) == false ) {
if (strpos($reply, '"Error":') === false) {
$reply = $reply . ',"Resp_time": "' . $time . '"}';
}

Expand Down

0 comments on commit 27fa93d

Please sign in to comment.