password is not required, set it to '' to quiet warnings

This commit is contained in:
Isaac Connor 2016-10-04 14:28:30 -04:00
parent 84a18926d8
commit e7eab488c9
1 changed files with 2 additions and 1 deletions

View File

@ -373,8 +373,9 @@ else {
# all other actions need URI and credentials
my $url_svc_device = shift;
$soap_version = shift;
my $username = shift;
my $username = @_ ? shift : '';
my $password = @_ ? shift : '';
print "Username: $username";
$client = ONVIF::Client->new( {
'url_svc_device' => $url_svc_device,