From 4ea5bca4e33a2d9e6723f094294b32c2676cfb42 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 3 Nov 2011 09:26:15 +0100 Subject: [PATCH] use correct prefix --- PVE/API2/Storage/Status.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm index 717a937..68f3d39 100644 --- a/PVE/API2/Storage/Status.pm +++ b/PVE/API2/Storage/Status.pm @@ -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]; }