pkgs-lib.formats.xml: Fix withHeader parameter

This commit is contained in:
InfinityGhost
2025-03-04 13:01:11 -05:00
parent 37309b7331
commit 07bcf3e909
+1 -1
View File
@@ -620,7 +620,7 @@ rec {
import xmltodict
with open(os.environ["valuePath"], "r") as f:
print(xmltodict.unparse(json.load(f), full_document=${toString withHeader}, pretty=True, indent=" " * 2))
print(xmltodict.unparse(json.load(f), full_document=${if withHeader then "True" else "False"}, pretty=True, indent=" " * 2))
'';
passAsFile = [
"value"