mirror of
https://github.com/inspec/inspec
synced 2024-11-13 08:27:08 +00:00
Merge pull request #1647 from jeremymv2/jeremymv2/automate_dependency_profiles
allow Automate profile dependencies
This commit is contained in:
commit
c70824d0c8
1 changed files with 5 additions and 1 deletions
|
@ -80,7 +80,11 @@ EOF
|
|||
private
|
||||
|
||||
def compliance_profile_name
|
||||
m = %r{^#{@config['server']}/owners/(?<owner>[^/]+)/compliance/(?<id>[^/]+)/tar$}.match(@target)
|
||||
m = if @config['server_type'] == 'automate'
|
||||
%r{^#{@config['server']}/(?<owner>[^/]+)/(?<id>[^/]+)/tar$}
|
||||
else
|
||||
%r{^#{@config['server']}/owners/(?<owner>[^/]+)/compliance/(?<id>[^/]+)/tar$}
|
||||
end.match(@target)
|
||||
"#{m[:owner]}/#{m[:id]}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue