Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

ORT: handle case where plugin has no config file. fixes #1259. #1260

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions traffic_ops/bin/traffic_ops_ort.pl
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
my $unixtime = time();
my $hostname_short = `/bin/hostname -s`;
chomp($hostname_short);

my $domainname = &set_domainname();
$lwp_conn->agent("$hostname_short-$unixtime");

Expand Down Expand Up @@ -929,6 +930,9 @@ sub check_plugins {
$cfg_file_tracker->{$plugin_config_file}->{'remap_plugin_config_file'} = 1;
}
}
else {
($plugin_name) = split(/\s/, $plugin_name);
}
$plugin_name =~ s/\s//g;
( $log_level >> $DEBUG ) && print "DEBUG Found plugin $plugin_name in $cfg_file.\n";
$return_code = &check_this_plugin($plugin_name);
Expand Down