[pve-devel] [PATCH cluster 2/4] pvecm: module cleanup: make_path is in core
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Nov 13 10:16:35 CET 2017
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
data/PVE/CLI/pvecm.pm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/data/PVE/CLI/pvecm.pm b/data/PVE/CLI/pvecm.pm
index 015978d..0137046 100755
--- a/data/PVE/CLI/pvecm.pm
+++ b/data/PVE/CLI/pvecm.pm
@@ -8,7 +8,6 @@ use IO::File;
use IO::Socket::IP;
use POSIX;
use Net::IP;
-use File::Path;
use File::Basename;
use PVE::Tools qw(run_command);
use PVE::Cluster;
@@ -85,11 +84,11 @@ __PACKAGE__->register_method ({
# test EUID
$> == 0 || die "Error: Authorization key must be generated as root user.\n";
- my $dirname = dirname($filename);
die "key file '$filename' already exists\n" if -e $filename;
- File::Path::make_path($dirname) if $dirname;
+ my $dirname = dirname($filename);
+ make_path($dirname) if $dirname;
run_command(['corosync-keygen', '-l', '-k', $filename]);
--
2.11.0
More information about the pve-devel
mailing list