app/get/config.rb in nagira-0.5.0 vs app/get/config.rb in nagira-0.5.1
- old
+ new
@@ -16,9 +16,9 @@
# @overload get("/_config")
#
# Get Nagios configuration hash form parsing main Nagios
# configuration file nagios.cfg
get "/_config" do
- @data = $nagios[:config].configuration
+ @data = Parser.config.configuration
nil
end
end