lib/kitchen/provisioner/nodes.rb in kitchen-nodes-0.6.0 vs lib/kitchen/provisioner/nodes.rb in kitchen-nodes-0.6.1
- old
+ new
@@ -30,9 +30,10 @@
# @author Matt Wrock <matt@mattwrock.com>
class Nodes < ChefZero
def create_sandbox
FileUtils.rm(node_file) if File.exist?(node_file)
create_node
+ ensure
super
end
def create_node
FileUtils.mkdir_p(node_dir) unless Dir.exist?(node_dir)