You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ro...@apache.org on 2020/04/03 18:35:46 UTC
[trafficcontrol] branch master updated: Fix traffic_ops_ort.pl
checking cache status (#4597)
This is an automated email from the ASF dual-hosted git repository.
rob pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 524a54f Fix traffic_ops_ort.pl checking cache status (#4597)
524a54f is described below
commit 524a54f93f1c517224b59b47c4e603dda745b42c
Author: Rawlin Peters <ra...@apache.org>
AuthorDate: Fri Apr 3 12:35:37 2020 -0600
Fix traffic_ops_ort.pl checking cache status (#4597)
ORT was exiting with this error:
Not a HASH reference at /opt/ort/traffic_ops_ort.pl line 836.
Because the JSON returned from atstccfg is not wrapped in a "response"
object. This fixes that error.
---
traffic_ops/ort/traffic_ops_ort.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/traffic_ops/ort/traffic_ops_ort.pl b/traffic_ops/ort/traffic_ops_ort.pl
index 4d0eaab..9f39579 100755
--- a/traffic_ops/ort/traffic_ops_ort.pl
+++ b/traffic_ops/ort/traffic_ops_ort.pl
@@ -833,7 +833,7 @@ sub check_revalidate_state {
( $log_level >> $ERROR ) && print "ERROR status file $status_file does not exist.\n";
}
- for my $status ( @{$statuses->{'response'}} ) {
+ for my $status ( @{$statuses} ) {
next if ( $status->{name} eq $my_status );
my $other_status = $status_dir . "/" . $status->{name};