class Inspec::Resources::Podman

def object(id)

returns information about podman objects
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