Displaying 2 results from an estimated 2 matches for "check_duplicated_field".
Did you mean:
check_duplicated_fields
2015 Jul 08
7
[PATCH 0/6] RFC: basic subscription-manager support in virt-customize
Hi,
this series introduces a basic support for
registering/attaching/unregistering RHEL guests using
subscription-manager, so it is possible to do for example:
$ cat <<EOF > sm.conf
[general]
username=user
password=pass
[attach-0]
pool=ID
EOF
$ virt-customize -a rhel-guest.qcow2 \
--sm-config sm.conf --sm-register --sm-attach 0 \
--install pkg1 --install pkg2
2015 Jul 08
0
[PATCH 6/6] customize: add basic subscription-manager operations
...p;1
Hashtbl.replace passwords user pw
in
+ (* Parse the subscription-manager configuration. *)
+ let sm_config =
+ match ops.flags.sm_config with
+ | None -> None
+ | Some c ->
+ try
+ Some (Ini_reader.read_ini ~check_duplicated_sections:true
+ ~check_duplicated_fields:true c)
+ with exn ->
+ error (f_"cannot parse the subscription-manager configuration: %s")
+ (Printexc.to_string exn)
+ in
+ let sm_config_get_value group key =
+ let conf =
+ match sm_config with
+ | None ->
+ error (f_"subscription...