class Inspec::Resources::Podman
def object(id)
def object(id) return @inspect if defined?(@inspect) output = run_command("inspect #{id} --format json") data = JSON.parse(output) data = data[0] if data.is_a?(Array) @inspect = Hashie::Mash.new(data) rescue JSON::ParserError => _e Hashie::Mash.new({}) end