lib/bmc-daemon-lib/conf.rb in bmc-daemon-lib-0.9.1 vs lib/bmc-daemon-lib/conf.rb in bmc-daemon-lib-0.9.2
- old
+ new
@@ -285,11 +285,12 @@
def self.add_config path
# Skip if path is not readable
return unless path && File.readable?(path)
# Check if Chamber's behaviour may cause problems with hyphens
+ basename = File.basename(path)
if File.basename(path).include?'-'
- log :conf, "WARNING: files containting dashes may cause problems with Chamber"
+ log :conf, "WARNING: files with dashes may cause unexpected behaviour with Chamber (#{basename})"
end
# Store the files
@files << File.expand_path(path)
end