lib/mixlib/config.rb in mixlib-config-2.2.10 vs lib/mixlib/config.rb in mixlib-config-2.2.11
- old
+ new
@@ -151,10 +151,10 @@
#
# === Returns
# <True>:: If the config option exists
# <False>:: If the config option does not exist
def key?(key)
- configuration.has_key?(key.to_sym)
+ configuration.has_key?(key.to_sym) || config_contexts.has_key?(key.to_sym)
end
alias_method :has_key?, :key?
# Resets a config option to its default.