lib/riemann/babbler/plugin.rb in riemann-babbler-0.4.7 vs lib/riemann/babbler/plugin.rb in riemann-babbler-0.4.8
- old
+ new
@@ -143,10 +143,11 @@
err = err.chomp if err
raise err
elsif out
return out.chomp
else
- return true
+ # статус 0, вывода stdout нет
+ return ""
end
end
# http rest
def rest_get(url)