[pve-devel] [PATCH v4 qemu-server 03/10] implement cloudinit

Dietmar Maurer dietmar at proxmox.com
Tue Mar 6 07:16:32 CET 2018


>  use PVE::Cluster qw (cfs_read_file cfs_write_file);;
>  use PVE::SafeSyslog;
> @@ -64,7 +65,9 @@ my $check_storage_access = sub {
>  
>  	my $volid = $drive->{file};
>  
> -	if (!$volid || $volid eq 'none') {
> +	if (!$volid || ($volid eq 'none' || $volid eq 'cloudinit')) {
> +	    # nothing to check
> +	} elsif ($volid =~ m/^(([^:\s]+):)?(cloudinit)$/) {

Why two different checks for 'cloudinit'? The regex also match 'cloudinit', so
the
first test is useless?




More information about the pve-devel mailing list