Closed justinrubek closed 1 year ago
apologies for the indecipherable Go code, it needs some serious love 😰 .
thanks for reporting this! I'm surprised we hadn't run into it yet. I merged a fix in #4, though I haven't tested it. let me know how that works for you.
Thank you! The newest version is working now. I'd been running it with the nix patched manually and my jobs look identical after switching back
summary
job.<name>.group.<name>.volume
attrs are transformed to JSON as a list. The final output ends up looking something like:However Nomad doesn't expect this to be a list but rather indexed by the volume's names:
what I've tried
mapAttrs
instead ofmapAttrsToList
, however I have not figured out what needs to change in the generator to match