Allow transfer_xml direct file paths in pluginTools
This commit is contained in:
parent
13b517718f
commit
7275bdd061
|
@ -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});
|
||||
|
|
Loading…
Reference in New Issue