lib/rudy/routines/passthrough.rb in solutious-rudy-0.7.3 vs lib/rudy/routines/passthrough.rb in solutious-rudy-0.7.4
- old
+ new
@@ -26,10 +26,12 @@
raise Rudy::Error, "No routine name" unless @routine_name
raise NoRoutine, @routine_name unless @routine
rmach = Rudy::Machines.new
raise Rudy::PrivateKeyNotFound, root_keypairpath unless has_keypair?(:root)
raise MachineGroupNotDefined, current_machine_group unless known_machine_group?
- raise MachineGroupNotRunning, current_machine_group unless rmach.running?
+ if !@@global.offline && !rmach.running?
+ raise MachineGroupNotRunning, current_machine_group
+ end
end
end
end; end
\ No newline at end of file