Merge pull request #1647 from jeremymv2/jeremymv2/automate_dependency_profiles

allow Automate profile dependencies
This commit is contained in:
Adam Leff 2017-04-12 15:42:31 -04:00 committed by GitHub
commit c70824d0c8

View file

@ -80,7 +80,11 @@ EOF
private private
def compliance_profile_name 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]}" "#{m[:owner]}/#{m[:id]}"
end end
end end