RFE 549 commits now check for spectre connectivity before commiting and a new macro for showing spectre status.
This commit is contained in:
parent
655e5e7654
commit
77913e956b
7 changed files with 42 additions and 9 deletions
|
|
@ -172,7 +172,21 @@ sub www_spectreTest {
|
|||
my $session = shift;
|
||||
$session->http->setMimeType("text/plain");
|
||||
$session->http->setCacheControl("none");
|
||||
return WebGUI::Operation::Spectre::spectreTest($session);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 spectreTest ( )
|
||||
|
||||
Spectre executes this function to see if WebGUI connectivity is working.
|
||||
|
||||
=cut
|
||||
|
||||
sub spectreTest{
|
||||
my $session = shift;
|
||||
my $subnets = $session->config->get("spectreSubnets");
|
||||
|
||||
if (!defined $subnets) {
|
||||
$subnets = [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -307,6 +307,13 @@ sub www_commitVersionTag {
|
|||
my $session = shift;
|
||||
my $tagId = $session->form->param("tagId");
|
||||
|
||||
my $spectreTest = WebGUI::Operation::Spectre::spectreTest($session);
|
||||
if($spectreTest ne "success"){
|
||||
my $i18n = WebGUI::International->new($session, "Macro_SpectreCheck")->get($spectreTest);
|
||||
my $ac = WebGUI::AdminConsole->new($session,"versions");
|
||||
return $ac->render( $i18n );
|
||||
}
|
||||
|
||||
if ( !$tagId ) {
|
||||
return www_manageVersions( $session );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue