Displaying 1 result from an estimated 1 matches for "ovirt_config_output_fil".
Did you mean:
ovirt_config_output_file
2010 Mar 10
1
[PATCH] Fixes how o-process-config handles missing field names or values.
...}
}
}' $CONFIG)
+SUCCESS=$?
+
+if [ SUCCESS != 0 ]; then
+ case $SUCCESS in
+ 1) error="missing field name";;
+ 2) error="missing field value";;
+ esac
+
+ die "Bad data received: ${error}"
+fi
+
echo "$networking" > $OVIRT_CONFIG_OUTPUT_FILE
if [ -f $OVIRT_CONFIG_OUTPUT_FILE ]; then
augtool $OVIRT_CONFIG_OUTPUT_FILE \
- && RESULT=0 || RESULT=1
+ && RESULT=0 || RESULT=1
# FIXME do not store ifcfg-lo
if ls /etc/sysconfig/network-scripts/ifcfg* >/dev/null 2>/dev/null; then
- ovirt_store_conf...