Fixed some default values in PluginTools

This commit is contained in:
fbsanchez 2018-01-10 10:19:46 +01:00
parent b29271a3c0
commit b32e61cd3e
1 changed files with 4 additions and 0 deletions

View File

@ -609,7 +609,11 @@ sub transfer_xml {
close (FD);
# Reassign default values if not present
$conf->{tentacle_client} = "tentacle_client" if empty($conf->{tentacle_client});
$conf->{tentacle_port} = "44121" if empty($conf->{tentacle_port});
$conf->{mode} = $conf->{transfer_mode} if empty($conf->{mode});
if (empty ($conf->{mode}) ) {
print_stderror($conf, "[ERROR] Nor \"mode\" nor \"transfer_mode\" defined in configuration.");
return undef;