lib/facter/util/api_debugger.rb in facter-4.6.1 vs lib/facter/util/api_debugger.rb in facter-4.7.0
- old
+ new
@@ -32,12 +32,12 @@
exclude = []
print_caller = []
options.split(',').each do |option|
if option.start_with?('-')
- exclude << option[1..].to_sym
+ exclude << option[1..-1].to_sym
elsif option.start_with?('+')
- print_caller << option[1..].to_sym
+ print_caller << option[1..-1].to_sym
end
end
[exclude, print_caller]
end