lib/testlab/container/lxc.rb in testlab-0.4.15 vs lib/testlab/container/lxc.rb in testlab-0.4.16
- old
+ new
@@ -88,10 +88,10 @@
self.lxc.destroy(%(-f))
build_lxc_config(self.lxc_clone.config)
else
self.lxc.stop
- self.lxc.destroy(%(-f)) if self.persist
+ self.persist and self.lxc.destroy(%(-f))
end
true
end