>  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?

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

Reply via email to