This patch was sent by mistake and should be ignored,
it's wrong.

On 11/13/2017 10:16 AM, Thomas Lamprecht wrote:
> Signed-off-by: Thomas Lamprecht <[email protected]>
> ---
>  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]);
>  
> 


_______________________________________________
pve-devel mailing list
[email protected]
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to