1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[core] log warning for unrecognized arguments

This commit is contained in:
Brian D. Burns 2013-10-21 12:31:55 -04:00
parent 58257dd714
commit 7cc4773675

View file

@ -211,7 +211,7 @@ module Fog
unless recognizes.empty?
unrecognized = options.keys - requirements - recognized
unless unrecognized.empty?
raise ArgumentError, "Unrecognized arguments: #{unrecognized.join(', ')}"
Fog::Logger.warning("Unrecognized arguments: #{unrecognized.join(', ')}")
end
end
end