Skip to content

Commit

Permalink
Fix handling of '-r' in iohyve clone
Browse files Browse the repository at this point in the history
The '-r' option was overriding the name in the iohyve clone function
  • Loading branch information
moogle19 committed Apr 30, 2016
1 parent 2f97c0b commit fb7f281
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ioh-zfs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ __cloneguest() {
local flag="$2"
local name="$2"
local cname="$3"
if [ "$flag" == "-r" ]; then
name="$3"
cname="$4"
fi
local description="$(date | sed -e 's/ /_/g')"
local pool="$(zfs list -H -t volume | grep iohyve/$name | grep disk0 | cut -d '/' -f 1 | head -n1)"
# Check if guest exists
Expand Down

0 comments on commit fb7f281

Please sign in to comment.