]> git.proxmox.com Git - pve-storage.git/commitdiff
has_feature : fix key = snap
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 15 Feb 2013 09:01:56 +0000 (10:01 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 15 Feb 2013 09:08:04 +0000 (10:08 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Storage/ISCSIDirectPlugin.pm
PVE/Storage/ISCSIPlugin.pm
PVE/Storage/LVMPlugin.pm
PVE/Storage/NexentaPlugin.pm
PVE/Storage/Plugin.pm
PVE/Storage/RBDPlugin.pm
PVE/Storage/SheepdogPlugin.pm

index e13e4e658144c2f24c060bb39a02247b1b215839..cc6a8c3148d7698cf16021b3226c9145d9c50ac4 100644 (file)
@@ -231,7 +231,7 @@ sub volume_has_feature {
 
     my $key = undef;
     if($snapname){
-       $key = $snapname
+       $key = 'snap';
     }else{
        $key =  $isBase ? 'base' : 'current';
     }
index a368e1721b4fe06675eb9eea278ecc6c3cb47020..8da7ec58fcb61f65c6d4d766cc6ab8d7a926d001 100644 (file)
@@ -407,7 +407,7 @@ sub volume_has_feature {
 
     my $key = undef;
     if($snapname){
-       $key = $snapname
+       $key = 'snap';
     }else{
        $key =  $isBase ? 'base' : 'current';
     }
index 5c90d83ea13bfd993d6ec4da098c678d9efb5a59..845ebc563d03a3fb614e513478abac71f9cf8c1b 100644 (file)
@@ -462,7 +462,7 @@ sub volume_has_feature {
 
     my $key = undef;
     if($snapname){
-       $key = $snapname
+       $key = 'snap';
     }else{
        $key =  $isBase ? 'base' : 'current';
     }
index 4c6fe2e6b68e2a2d348ec8b73bf84ae7e278ecef..1b0f6834466c89b28dae900a67a0715a5e73ea79 100644 (file)
@@ -489,7 +489,7 @@ sub volume_has_feature {
 
     my $key = undef;
     if($snapname){
-       $key = $snapname
+       $key = 'snap';
     }else{
        $key =  $isBase ? 'base' : 'current';
     }
index 5ff114a5364c9562daed51755d96ed88228b2e14..ebeb78b4f63259cb5c7ddc4b5c533106ea7c6c7f 100644 (file)
@@ -696,7 +696,7 @@ sub volume_has_feature {
 
     my $key = undef;
     if($snapname){
-        $key = $snapname
+        $key = 'snap';
     }else{
         $key =  $isBase ? 'base' : 'current';
     }
index a460826ef4e8879a491be579191d24b998b96b53..00c93d2aacd18318c1fbcf8174544986488a5bab 100644 (file)
@@ -479,7 +479,7 @@ sub volume_has_feature {
 
     my $key = undef;
     if($snapname){
-       $key = $snapname
+       $key = 'snap';
     }else{
        $key =  $isBase ? 'base' : 'current';
     }
index 46c2bd516806ef80a6707cccc53eecd43bb4e50b..d506b57b21bf2fca08ede6548e5bcc34abb31535 100644 (file)
@@ -440,7 +440,7 @@ sub volume_has_feature {
 
     my $key = undef;
     if($snapname){
-       $key = $snapname
+       $key = 'snap';
     }else{
        $key =  $isBase ? 'base' : 'current';
     }