[pve-devel] [PATCH 4/5] volid_path sub : check if $ms is undef
Dietmar Maurer
dietmar at proxmox.com
Fri Aug 21 10:44:39 CEST 2015
On 08/21/2015 08:05 AM, Alexandre Derumier wrote:
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
> src/PVE/LXC.pm | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
> index da9f72e..f8a1b58 100644
> --- a/src/PVE/LXC.pm
> +++ b/src/PVE/LXC.pm
> @@ -1858,8 +1858,8 @@ sub volid_path {
> } elsif ($format eq 'raw') {
>
> if ($scfg->{path}) {
> - if ($ms eq 'rootfs') {
> - $path = "loop:$path\n" if $ms eq 'rootfs';
> + if ($ms && $ms eq 'rootfs') {
>
Why do we check for defined '$ms'? I thought we always pass this?
More information about the pve-devel
mailing list