lib/vagrant_snap.rb in vagrant-snap-0.08 vs lib/vagrant_snap.rb in vagrant-snap-0.09

- old
+ new

@@ -100,9 +100,10 @@ end def with_target(target, &blk) target_found = false env.vms.each do |name, vm| + next if vm.vm.nil? # not yet created vagvmname = vm.name vmname = vm.vm.name if target.nil? or target.to_sym == vagvmname blk.call(vmname, vagvmname)