Skip to content

Commit

Permalink
src/cmd-oscontainer: use .format() instead of f-strings
Browse files Browse the repository at this point in the history
In the EL7 version of the `cosa` image, the `cmd-oscontainer` script
gets mangled to use Python2, so f-strings are not an option here.
  • Loading branch information
miabbott committed Feb 12, 2019
1 parent fcb83ea commit 8abc2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd-oscontainer
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def oscontainer_extract(containers_storage, src, dest,
if commit is None:
raise SystemExit("Failed to find label '{}'".format(OSCONTAINER_COMMIT_LABEL))
iid = inspect['Id']
print(f"Preparing to extract cid: {iid}")
print("Preparing to extract cid: {}".format(iid))
# We're not actually going to run the container. The main thing `create` does
# then for us is "materialize" the merged rootfs, so we can mount it.
# In theory we shouldn't need --entrypoint=/enoent here, but
Expand Down

0 comments on commit 8abc2fc

Please sign in to comment.