diff options
author | Saku Ytti <saku@ytti.fi> | 2015-02-24 15:24:22 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2015-02-24 15:24:22 +0200 |
commit | 628f6dddc8fd41e07dba99e7fb41566b89d954c5 (patch) | |
tree | 4dea563e0e7c1ac62cd2a95e72711bc2d18cb840 | |
parent | 5d27f19b62edb50e62f2104c22bbd3461d5e962c (diff) |
set_cmd can't be nil
still not sure if this is the right way to guard non-string blocks...
-rw-r--r-- | lib/oxidized/model/model.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/model.rb b/lib/oxidized/model/model.rb index 45de4d7..899b40a 100644 --- a/lib/oxidized/model/model.rb +++ b/lib/oxidized/model/model.rb @@ -133,10 +133,10 @@ module Oxidized outputs << out end procs[:pre].each do |pre_proc| - outputs.unshift process_cmd_output(instance_eval(&pre_proc), nil) + outputs.unshift process_cmd_output(instance_eval(&pre_proc), '') end procs[:post].each do |post_proc| - outputs << process_cmd_output(instance_eval(&post_proc), nil) + outputs << process_cmd_output(instance_eval(&post_proc), '') end outputs end |