stages: workaround the two remaining autopep8 issues via noqa
Small followup for https://github.com/osbuild/osbuild/pull/1864 There were two issues from `autopep8` left, both can be just silenced via the `# noqa` directive.
This commit is contained in:
parent
db08c472f3
commit
3b77eb3625
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ KillSignal=SIGHUP
|
||||||
# Unset locale for the console getty since the console has problems
|
# Unset locale for the console getty since the console has problems
|
||||||
# displaying some internationalized messages.
|
# displaying some internationalized messages.
|
||||||
UnsetEnvironment=LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
|
UnsetEnvironment=LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
|
||||||
"""
|
""" # noqa
|
||||||
|
|
||||||
with open(f"{tree}/etc/systemd/system/osbuild-debug-shell.service", "w", encoding="utf8") as f:
|
with open(f"{tree}/etc/systemd/system/osbuild-debug-shell.service", "w", encoding="utf8") as f:
|
||||||
f.write(unit)
|
f.write(unit)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ def main(inputs, output, options):
|
||||||
if dest_type == "containers-storage":
|
if dest_type == "containers-storage":
|
||||||
storage_root = destination.get("storage-path", "/var/lib/containers/storage")
|
storage_root = destination.get("storage-path", "/var/lib/containers/storage")
|
||||||
storage_driver = destination.get("storage-driver", "overlay")
|
storage_driver = destination.get("storage-driver", "overlay")
|
||||||
dest = f"containers-storage:[{storage_driver}@{output}{storage_root}+/run/containers/storage]{image_name}"
|
dest = f"containers-storage:[{storage_driver}@{output}{storage_root}+/run/containers/storage]{image_name}" # noqa
|
||||||
elif dest_type in ("oci", "oci-archive", "dir"):
|
elif dest_type in ("oci", "oci-archive", "dir"):
|
||||||
path = destination["path"]
|
path = destination["path"]
|
||||||
dest = f"{dest_type}:{output}{path}"
|
dest = f"{dest_type}:{output}{path}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue