]> git.proxmox.com Git - pve-storage.git/commitdiff
use correct prefix
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Nov 2011 08:26:15 +0000 (09:26 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Nov 2011 08:32:32 +0000 (09:32 +0100)
PVE/API2/Storage/Status.pm

index 717a93761658d89c8cf0de946b5377cbf81b70ab..68f3d398c74abf725366674709542966a8980a27 100644 (file)
@@ -296,12 +296,12 @@ __PACKAGE__->register_method ({
            if ($filename !~ m![^/]+\.tar\.gz$!) {
                raise_param_exc({ filename => "missing '.tar.gz' extension" });
            }
-           $path = get_vztmpl_dir ($cfg, $param->{storage});
+           $path = PVE::Storage::get_vztmpl_dir($cfg, $param->{storage});
        } elsif ($content eq 'backup') {
            if ($filename !~  m!/([^/]+\.(tar|tgz))$!) {
                raise_param_exc({ filename => "missing '.(tar|tgz)' extension" });
            }
-           $path = get_backup_dir($cfg, $param->{storage});
+           $path = PVE::Storage::get_backup_dir($cfg, $param->{storage});
        } else {
            raise_param_exc({ content => "upload content type '$content' not implemented" });
        }
@@ -335,7 +335,7 @@ __PACKAGE__->register_method ({
            $cmd = ['/usr/bin/scp', @ssh_options, $tmpfilename, "$remip:$dest"];
        } else {
            PVE::Storage::activate_storage($cfg, $param->{storage});
-           make_path($dirname);
+           File::Path::make_path($dirname);
            $cmd = ['cp', $tmpfilename, $dest];
        }