Make it work with wheezy ruby
[mirror/dsa-nagios.git] / config / build-nagios
index a940b87..5e41e05 100755 (executable)
@@ -380,6 +380,8 @@ config['services'].each{ |service|
 
        split_away_extinfo service
 
+       # make sure the depends list is an array
+       service['depends'] = ensure_array( service['depends'] )
 
        # Both 'name' and 'service_description' are valid for a service's name
        # Internally we only use service_description as that's nagios' official term