lib/kitchen/driver/oci/config.rb in kitchen-oci-1.18.0 vs lib/kitchen/driver/oci/config.rb in kitchen-oci-1.18.1

- old
+ new

@@ -63,10 +63,12 @@ @compartment_id = config[:compartment_id] @compartment_name = config[:compartment_name] end def config_loader(opts = {}) - OCI::ConfigFileLoader.load_config(**opts.compact) + # this is to accommodate old versions of ruby that do not have a compact method on a Hash + opts.reject! { |_, v| v.nil? } + OCI::ConfigFileLoader.load_config(**opts) rescue OCI::ConfigFileLoader::Errors::ConfigFileNotFoundError OCI::Config.new end def tenancy