]> git.datanom.net - omvzfs.git/blobdiff - src/Zpool.php
Initial implementation of GUI for adding ZFS pools plus minor bugfixes.
[omvzfs.git] / src / Zpool.php
index 61220a616827887f3ff5e6fa110e9d53df49b0a1..c8d4ae97fe73d09f39719fb61280e2c27f484f4d 100644 (file)
@@ -145,11 +145,11 @@ class OMVModuleZFSZpool extends OMVModuleAbstract
                $this->cache = null;
                $this->features = array();
                if ($create_pool) {
-                       $cmd = "zpool create $name $cmd";
+                       $cmd = "zpool create $name $cmd 2>&1";
 
                        OMVUtil::exec($cmd, $output, $result);
                        if ($result)
-                               throw new OMVModuleZFSException($output);
+                               throw new OMVModuleZFSException(implode("\n", $output));
                        else {
                                $this->name = $name;
                                $this->type = $type;
This page took 0.029325 seconds and 5 git commands to generate.