summaryrefslogtreecommitdiffstats
path: root/reverseVpd.py
diff options
context:
space:
mode:
authorJason Albert <albertj@us.ibm.com>2015-03-21 11:11:21 -0500
committerJason Albert <albertj@us.ibm.com>2015-03-21 11:11:21 -0500
commit06d1a6f31fa9d3ae53cf4ef193a6801033cdf365 (patch)
tree5c02635a0ba8dbfa5f40803622fa9663b905270c /reverseVpd.py
parent776368e23871a380ab6778bf53bd0f83dd76273a (diff)
downloadvpdtools-06d1a6f31fa9d3ae53cf4ef193a6801033cdf365.tar.gz
vpdtools-06d1a6f31fa9d3ae53cf4ef193a6801033cdf365.zip
Added call to xmllint to fix busted ET formatting
Diffstat (limited to 'reverseVpd.py')
-rwxr-xr-xreverseVpd.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/reverseVpd.py b/reverseVpd.py
index 41862b3..02a2c25 100755
--- a/reverseVpd.py
+++ b/reverseVpd.py
@@ -283,3 +283,9 @@ tvpdFileName = clOutputPath + "/" + vpdName + ".tvpd"
writeTvpd(vpd, tvpdFileName)
out.msg("Wrote tvpd file: %s" % tvpdFileName)
+# Now rip it through xmllint quick to cleanup formatting problems from the ET print
+rc = os.system("xmllint --format %s -o %s" % (tvpdFileName, tvpdFileName))
+if (rc):
+ out.error("Unable to call xmllint to fixing xml formatting")
+ exit(rc)
+
OpenPOWER on IntegriCloud