mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
Fix is_automate_server_080_and_later? call
Method name was incorrect (missing `?`) and also was missing the required config parameter. Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
parent
9f30fe1726
commit
81bfdf2d55
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ EOF
|
|||
def compliance_profile_name
|
||||
m = if Compliance::API.is_automate_server_pre_080?(@config)
|
||||
%r{^#{@config['server']}/(?<owner>[^/]+)/(?<id>[^/]+)/tar$}
|
||||
elsif Compliance::API.is_automate_server_080_and_later
|
||||
elsif Compliance::API.is_automate_server_080_and_later?(@config)
|
||||
%r{^#{@config['server']}/profiles/(?<owner>[^/]+)/(?<id>[^/]+)/tar$}
|
||||
else
|
||||
%r{^#{@config['server']}/owners/(?<owner>[^/]+)/compliance/(?<id>[^/]+)/tar$}
|
||||
|
|
Loading…
Reference in a new issue