Merge pull request #1323 from knnniggett/zmfilter

fix missing Net::SFTP::Foreign::debug warning
This commit is contained in:
Isaac Connor 2016-03-21 10:47:50 -04:00
commit d3558c5688
1 changed files with 4 additions and 2 deletions

View File

@ -935,10 +935,12 @@ sub uploadArchFile
if $Config{ZM_UPLOAD_PORT};
$sftpOptions{timeout} = $Config{ZM_UPLOAD_TIMEOUT}
if $Config{ZM_UPLOAD_TIMEOUT};
$sftpOptions{more} = [ '-o'=>'StrictHostKeyChecking=no' ]
my @more_ssh_args;
push @more_ssh_args, ['-o'=>'StrictHostKeyChecking=no']
if ! $Config{ZM_UPLOAD_STRICT};
$Net::SFTP::Foreign::debug = -1
push @more_ssh_args, ['-v']
if $Config{ZM_UPLOAD_DEBUG};
$sftpOptions{more} = [@more_ssh_args];
my $sftp = Net::SFTP::Foreign->new( $Config{ZM_UPLOAD_HOST}, %sftpOptions );
if ( $sftp->error )
{