mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
CFINSPEC-85: Allow have_volume to test with container id
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
c43ef573b8
commit
20895030fa
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ module Inspec::Resources
|
|||
def volume_info
|
||||
return @mount_info if defined?(@mount_info)
|
||||
|
||||
@mount_info = inspec.docker.object(@opts[:name] || (!id.nil? && !opts[:id].nil? && (id == opts[:id] || id.start_with?(opts[:id]))))
|
||||
@mount_info = inspec.docker.object(@opts[:name] || @opts[:id])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue