mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 23:35:02 +02:00
intentation to spaces (2) and minor fix
This commit is contained in:
parent
b860c49383
commit
6504fe49b5
@ -50,7 +50,7 @@ function progress_task_list(id, title) {
|
||||
if (!$elem.dialog("isOpen"))
|
||||
timeoutRef = setInterval(function() {
|
||||
xhr = fetchTaskList(id, handleFetchTaskList);
|
||||
}, 300000);
|
||||
}, 3000);
|
||||
|
||||
xhr = fetchTaskList(id, handleFetchTaskList);
|
||||
}
|
||||
|
@ -75,6 +75,9 @@ use constant {
|
||||
DISCOVERY_CLOUD_AZURE_COMPUTE => 8,
|
||||
DISCOVERY_DEPLOY_AGENTS => 9,
|
||||
DISCOVERY_APP_SAP => 10,
|
||||
DISCOVERY_SEARCH => 0,
|
||||
DISCOVERY_STANDARD => 1,
|
||||
DISCOVERY_RESULTS => 2,
|
||||
};
|
||||
|
||||
################################################################################
|
||||
@ -489,7 +492,7 @@ sub PandoraFMS::Recon::Base::report_scanned_agents($) {
|
||||
my ($self) = @_;
|
||||
|
||||
if(defined($self->{'task_data'}{'direct_report'})
|
||||
&& $self->{'task_data'}{'direct_report'} eq "2"
|
||||
&& $self->{'task_data'}{'direct_report'} == DISCOVERY_RESULTS
|
||||
) {
|
||||
# Load cache.
|
||||
my @rows = get_db_rows(
|
||||
|
@ -36,6 +36,9 @@ use constant {
|
||||
DISCOVERY_CLOUD_AZURE_COMPUTE => 8,
|
||||
DISCOVERY_DEPLOY_AGENTS => 9,
|
||||
DISCOVERY_APP_SAP => 10,
|
||||
DISCOVERY_SEARCH => 0,
|
||||
DISCOVERY_STANDARD => 1,
|
||||
DISCOVERY_RESULTS => 2,
|
||||
};
|
||||
|
||||
# $DEVNULL
|
||||
@ -1804,9 +1807,11 @@ sub scan($) {
|
||||
return $self->deploy_scan();
|
||||
}
|
||||
}
|
||||
# XXX
|
||||
print "Metodo: ".$self->{'task_data'}{'direct_report'}."\n";
|
||||
|
||||
if(defined($self->{'task_data'}{'direct_report'})
|
||||
&& $self->{'task_data'}{'direct_report'} eq "2"
|
||||
&& $self->{'task_data'}{'direct_report'} == DISCOVERY_RESULTS
|
||||
) {
|
||||
# Use Cached results.
|
||||
return $self->call('report_scanned_agents');
|
||||
|
Loading…
x
Reference in New Issue
Block a user