Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
/org.osbuild.systemd.unit*: Don't use interpolation with ConfigParser
Its not uncommon for systemd unit key values to contain things like "%t", as these are magic values expanded by systemd. We need to disable the ConfigParser default interpolation that treats '%' as meaning interpolation. Otherwise you will get errors like: ``` File "/run/osbuild/bin/org.osbuild.systemd.unit.create", line 66, in <module> r = main(args["tree"], args["options"]) File "/run/osbuild/bin/org.osbuild.systemd.unit.create", line 46, in main config.set(section, option, str(value)) File "/usr/lib64/python3.9/configparser.py", line 1204, in set super().set(section, option, value) File "/usr/lib64/python3.9/configparser.py", line 894, in set value = self._interpolation.before_set(self, section, option, File "/usr/lib64/python3.9/configparser.py", line 402, in before_set raise ValueError("invalid interpolation syntax in %r at " ValueError: invalid interpolation syntax in '%t/asil-ipc-demo/asil_ipc.socket' at position 0 ```
- Loading branch information