summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2015-02-24 15:24:22 +0200
committerSaku Ytti <saku@ytti.fi>2015-02-24 15:24:22 +0200
commit628f6dddc8fd41e07dba99e7fb41566b89d954c5 (patch)
tree4dea563e0e7c1ac62cd2a95e72711bc2d18cb840
parent5d27f19b62edb50e62f2104c22bbd3461d5e962c (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.rb4
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