]> git.proxmox.com Git - pve-container.git/commitdiff
fix test if storage allows containers
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Oct 2015 05:49:03 +0000 (07:49 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Oct 2015 05:50:32 +0000 (07:50 +0200)
debian/changelog
src/PVE/API2/LXC.pm

index fcfa7d7e777dd383fae70a809dfe196818ff4194..daaab7e9c1b7e558cd83793173eb1fdd5e3b3255 100644 (file)
@@ -2,6 +2,8 @@ pve-container (1.0-8) unstable; urgency=medium
 
   * make bridge parameter option - required for hotplug code
 
+  * fix test if storage allows containers
+
  -- Proxmox Support Team <support@proxmox.com>  Sat, 10 Oct 2015 17:24:31 +0200
 
 pve-container (1.0-7) unstable; urgency=medium
index a0a888212283ff8fbe2eb46a391bce5a4a1fedef..584241f699c864d2a7ca44c3b3936f0250163cf2 100644 (file)
@@ -187,7 +187,7 @@ __PACKAGE__->register_method({
        my $scfg = PVE::Storage::storage_check_node($storage_cfg, $storage, $node);
 
        raise_param_exc({ storage => "storage '$storage' does not support container root directories"})
-           if !($scfg->{content}->{images} || $scfg->{content}->{rootdir});
+           if !$scfg->{content}->{rootdir};
 
        my $pool = extract_param($param, 'pool');