-
-
Notifications
You must be signed in to change notification settings - Fork 9
nixpart -p generates invalid syntax for my kickstart file #11
Comments
Verbose output:
|
I think one bug is in
That's probably because of if len(data) == 0:
out += "{}"
if len(data) == 0 or (len(data) == 1 and
not isinstance(data.values()[0], dict)):
out += "{" + mkattr(data, " ", " ", ind) + "}" both Anoter question is why it's |
@nh2: The first |
@aszlig Do you know if I'm trying to make this SSD+HDD server use ext4 with external journal (for great speedup), and for that I have to run
But I'm not sure where to stick it. |
|
If the data given to nixify() is a dictionary and it's empty, the result is that we get *two* empty Nix attribute sets, like this: fileSystems = {}{}; So either we'd need to return after appending {} to the output or just remove the check for whether data is an empty dict. I choose the latter as it decreases the amount of branches. Thanks to @nh2 for reporting. Signed-off-by: aszlig <[email protected]> Fixes: #11
Closing as the fix for the invalid syntax is in 69bd518. The lack of support for |
Trying to format a Hetzner server:
fileSystems = {}{};
isn't valid syntax, andnixops
trips over this output.The text was updated successfully, but these errors were encountered: