]> git.proxmox.com Git - pve-container.git/commitdiff
cleanup coding style
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 5 Sep 2015 08:44:13 +0000 (10:44 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 5 Sep 2015 08:46:03 +0000 (10:46 +0200)
src/PVE/LXC.pm
src/PVE/LXC/Create.pm

index c54b491f3861411080d3f61a4448bab8a3258086..5f09276245d77b832a1a3a17ec4db5f65277faca 100644 (file)
@@ -1982,8 +1982,7 @@ sub mount_all {
        umount_all($vmid, $storage_cfg, $conf, 1);
     }
 
-    return ($rootdir, $loopdevs) if wantarray;
-    return $rootdir;
+    return wantarray ? ($rootdir, $loopdevs) : $rootdir;
 }
 
 
index a7ad52e139bc1a75bbb112a386bd5ea1a38183a5..d4785ee02375573cb44de5885b631dd64e5bad5f 100644 (file)
@@ -207,7 +207,7 @@ sub create_rootfs {
 
     my $loopdevs;
     eval {
-       (my $rootdir, $loopdevs) = PVE::LXC::mount_all($vmid, $storage_cfg, $conf);
+       my ($rootdir, $loopdevs) = PVE::LXC::mount_all($vmid, $storage_cfg, $conf);
         restore_and_configure($vmid, $archive, $rootdir, $conf, $password, $restore);
     };
     if (my $err = $@) {