]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2112] solve python syntax error in hammer
authorAndrei Pavel <andrei@isc.org>
Fri, 19 Nov 2021 17:17:36 +0000 (19:17 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 19 Nov 2021 17:24:02 +0000 (19:24 +0200)
hammer.py

index 5e16978580dd76117e18dd29b6af8fb4c82ebb33..15ccb27b85815b78eb9eeeaaffafbd65374e9b2f 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -495,10 +495,10 @@ def install_pkgs(pkgs, timeout=60, env=None, check_times=False, pkg_cache={}):
 
 def get_image_template(key, variant):
     if key not in IMAGE_TEMPLATES:
-        print(f'ERROR: Image {key} not available.', file=sys.stderr)
+        print('ERROR: Image {} is not available.'.format(key), file=sys.stderr)
         sys.exit(1)
     if variant not in IMAGE_TEMPLATES[key]:
-        print(f'ERROR: Variant {variant} not available for image {key}.', file=sys.stderr)
+        print('ERROR: Variant {} is not available for image {}.'.format(variant, key), file=sys.stderr)
         sys.exit(1)
     return IMAGE_TEMPLATES[key][variant]