summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2013-09-01 19:42:37 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2013-09-01 19:42:37 +0200
commit88e909777d89628ec1e20bc39da4c29a6900bd04 (patch)
tree2095c5db063c63cc78b299c257a6aa15086f4700
parentc8e3989f62d1feb1ba930ad7f99b9e8ed70215e4 (diff)
downloadzvolcreator-88e909777d89628ec1e20bc39da4c29a6900bd04.tar.gz
zvolcreator-88e909777d89628ec1e20bc39da4c29a6900bd04.tar.bz2
zvolcreator-88e909777d89628ec1e20bc39da4c29a6900bd04.zip
Whoops, typo
-rw-r--r--zfs_monkeypatch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/zfs_monkeypatch.rb b/zfs_monkeypatch.rb
index 34cce93..20fb7d9 100644
--- a/zfs_monkeypatch.rb
+++ b/zfs_monkeypatch.rb
@@ -8,7 +8,7 @@ class ZFS
cmd = [ZFS.zfs_path].flatten + ['create']
cmd << '-p' if opts[:parents]
cmd << '-s' if opts[:volume] and opts[:sparse]
- cmd += opts[:zfsopts].map(|el| ['-o', el]).flatten if opts[:zfsopts]
+ cmd += opts[:zfsopts].map{|el| ['-o', el]}.flatten if opts[:zfsopts]
cmd += ['-V', opts[:volume]] if opts[:volume]
cmd << name