HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/certbot/current/usr/share/augeas/lenses/dist/iscsid.aug
(*
Module: Iscsid
Parses iscsid configuration file
Author: Joey Boggs <jboggs@redhat.com>
About: Reference
This lens is targeted at /etc/iscsi/iscsid.conf
*)
module Iscsid =
  autoload xfm

  let filter = incl "/etc/iscsi/iscsid.conf"

  let eol = Util.eol
  let indent = Util.indent
  let key_re = /[][A-Za-z0-9_.-]+/
  let eq = del /[ \t]*=[ \t]*/ " = "
  let value_re = /[^ \t\n](.*[^ \t\n])?/

  let comment = [ indent . label "#comment" . del /[#;][ \t]*/ "# "
        . store /([^ \t\n].*[^ \t\n]|[^ \t\n])/ . eol ]

  let empty = Util.empty

  let kv = [ indent . key key_re . eq . store value_re . eol ]

  let lns = (empty | comment | kv) *

  let xfm = transform lns filter