lib/inspec/runner.rb in inspec-1.4.0 vs lib/inspec/runner.rb in inspec-1.4.1

- old
+ new

@@ -114,18 +114,20 @@ # determine all attributes before the execution, fetch data from secrets backend def load_attributes(options) attributes = {} # read endpoints for secrets eg. yml file - secrets_targets = options['attrs'] + secrets_targets = options[:attrs] unless secrets_targets.nil? secrets_targets.each do |target| secrets = Inspec::SecretsBackend.resolve(target) # merge hash values attributes = attributes.merge(secrets.attributes) unless secrets.nil? || secrets.attributes.nil? end end - options['attributes'] = attributes + options[:attributes] = options[:attributes] || {} + options[:attributes] = options[:attributes].merge(attributes) + options[:attributes] end # # add_target allows the user to add a target whose tests will be # run when the user calls the run method.