fix Admin.pm

This commit is contained in:
JT Smith 2007-01-30 21:50:13 +00:00
parent 237c2213e9
commit 05c9bf85c4
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@
translation out into a seperate method so it can be more easily maintained
and tested.
- fix: Spectre needs new watch batteries
- fix: Admin.pm (thanks to elnino)
- fix: lack of testing for valid object creation
- fix: No mention of intermediate upgrade step in gotcha's
- fix: A newly released version of Html::Template fixes a bug with global

View file

@ -195,6 +195,7 @@ sub runTests {
next if $config =~ m/^demo/;
print "Testing $key\n";
my $userAgent = new LWP::UserAgent;
$userAgent->env_proxy;
$userAgent->agent("Spectre");
$userAgent->timeout(30);
my $url = "http://".$configs->{$key}->get("sitename")->[0].":".$config->get("webguiPort").$configs->{$key}->get("gateway")."?op=spectreTest";
@ -209,7 +210,7 @@ sub runTests {
} elsif ($response eq "spectre") {
print "ERROR: WebGUI cannot communicate with Spectre. Perhaps you need to adjust the spectreIp or spectrePort setting the this config file: $key.";
} elsif ($response ne "success") {
print "ERROR: Spectre received an invalid response from WebGUI while testing $key\n";
print "ERROR: Spectre received an invalid response ($response) from WebGUI while testing $key\n";
}
}
}