mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
fix symbols and strings inconsistency
This commit is contained in:
parent
89aa647816
commit
ba4b9c26c5
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ module Inspec
|
|||
end
|
||||
|
||||
def create_context(options = {})
|
||||
meta = options['metadata']
|
||||
meta = options[:metadata]
|
||||
profile_id = nil
|
||||
profile_id = meta.params[:name] unless meta.nil?
|
||||
Inspec::ProfileContext.new(profile_id, @backend, @conf.merge(options))
|
||||
|
@ -123,7 +123,7 @@ module Inspec
|
|||
ctx.load_libraries(libs.map { |x| [x[:content], x[:ref], x[:line]] })
|
||||
|
||||
# hand the context to the profile for further evaluation
|
||||
unless (profile = options['profile']).nil?
|
||||
unless (profile = options[:profile]).nil?
|
||||
profile.runner_context = ctx
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue