CFINSPEC-274: Handle case of nil or error resource_id

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-06-06 11:58:43 +05:30
parent 60f80b9f97
commit 51d3717885
3 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ module Inspec::Resources
end
def resource_id
@opts[:filepath] || subject.CN
@opts[:filepath] || subject.CN || "x509 Certificate"
end
def to_s

View file

@ -39,7 +39,7 @@ module Inspec::Resources
end
def resource_id
@zfs_dataset
@zfs_dataset || "ZFS Dataset"
end
def to_s

View file

@ -32,7 +32,7 @@ module Inspec::Resources
end
def resource_id
@zfs_pool
@zfs_pool || "ZFS Pool"
end
def to_s