Skip to content

Commit

Permalink
action/box_register: Convert box-bundled template to VM
Browse files Browse the repository at this point in the history
  • Loading branch information
legal90 committed Nov 5, 2015
1 parent cd8e5db commit 51ee5b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/vagrant-parallels/action/box_register.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ def register_box(env)
box_id_file.open('w+') do |f|
f.write(env[:clone_id])
end

if env[:machine].provider.pd_version_satisfies?('>= 10')
# Convert template to VM (compatibility with old-styled boxes)
env[:machine].provider.driver.execute_prlctl(
'set', env[:clone_id], '--template', 'off')
end
end
end
end
Expand Down

0 comments on commit 51ee5b5

Please sign in to comment.