diff --git a/PVE/API2/Storage/Config.pm b/PVE/API2/Storage/Config.pm index 53c2107..3b38304 100755 --- a/PVE/API2/Storage/Config.pm +++ b/PVE/API2/Storage/Config.pm @@ -189,7 +189,7 @@ __PACKAGE__->register_method ({ } # create a password file in /etc/pve/priv, # this file is used as a cert_file at mount time. - my $cred_file = PVE::Storage::cifs_set_credentials($password, $storeid) + my $cred_file = PVE::Storage::CIFSPlugin::cifs_set_credentials($password, $storeid) if $type eq 'cifs' && defined($password); eval { @@ -285,7 +285,7 @@ __PACKAGE__->register_method ({ if PVE::Storage::storage_is_used($cfg, $storeid); if ($scfg->{type} eq 'cifs') { - my $cred_file = PVE::Storage::cifs_cred_file_name($storeid); + my $cred_file = PVE::Storage::CIFSPlugin::cifs_cred_file_name($storeid); if (-f $cred_file) { unlink($cred_file) or warn "removing cifs credientials '$cred_file' failed: $!\n"; }