Allow transfer_xml direct file paths in pluginTools

This commit is contained in:
fbsanchez 2021-04-19 18:11:34 +02:00
parent 13b517718f
commit 7275bdd061
1 changed files with 50 additions and 45 deletions

View File

@ -792,6 +792,7 @@ sub transfer_xml {
my $file_name;
my $file_path;
if (! -f $xml) {
if (! (empty ($name))) {
$file_name = $name . "." . sprintf("%d",getCurrentUTimeMilis(). (rand()*10000)) . ".data";
}
@ -845,6 +846,10 @@ sub transfer_xml {
close ($FD);
} else {
$file_path = $xml;
}
# Reassign default values if not present
$conf->{tentacle_client} = "tentacle_client" if empty($conf->{tentacle_client});
$conf->{tentacle_port} = "41121" if empty($conf->{tentacle_port});