index 6cdfd7f7d2c98bce5a80c71f21e70bb1e2a28c5f..c65c6f07ad1d6de5b9053a93f5e1ccc1bf8c1313 100644 (file)
my ($cfg_file, %cfg_defaults) = @_;
my $cfg;
- if( defined( $cfg_file) && ( length($cfg_file) > 0 )) {
+ if( defined( $cfg_file) && ( (-s $cfg_file) > 0 )) {
if( -r $cfg_file ) {
$cfg = Config::IniFiles->new( -file => $cfg_file );
} else {
}
}
- # in case of no and more than one running jobs in queue, add on single job
+ # in case of no and more than one running jobs in queue, add one single job
+
+# TODO
+ # resolve plain name for host $macaddress
&main::daemon_log("$session_id DEBUG: add job to queue for host '$macaddress'", 7);
my $func_dic = {table=>$main::job_queue_tn,
primkey=>['id'],
targettag=>$source,
xmlmessage=>'none',
macaddress=>$macaddress,
+ plainname=>'none',
};
my ($err, $error_str) = $main::job_db->add_dbentry($func_dic);
if ($err != 0) {