# File lib/knife-solo/tools.rb, line 23
    def self.config_value(config, key, default = nil)
      key = key.to_sym
      if !config[key].nil?
        config[key]
      elsif !Chef::Config[:knife][key].nil?
        # when Chef 10 support is dropped, this branch can be removed
        # as Chef 11 automatically merges the values to the `config` hash
        Chef::Config[:knife][key]
      else
        default
      end
    end