From cdd65d4fd9afcd82dc6a2a2ba384a35e522decd1 Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Tue, 13 Sep 2022 12:20:09 +0200 Subject: [PATCH] stages/greenboot: ignore f-string recommendation The explicit string-formatting is definitely easier to manage than an f-string in the greenboot case. Make pylint suppress its recommendation. Signed-off-by: David Rheinsberg --- stages/org.osbuild.greenboot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stages/org.osbuild.greenboot b/stages/org.osbuild.greenboot index eb113f24..d1af0448 100755 --- a/stages/org.osbuild.greenboot +++ b/stages/org.osbuild.greenboot @@ -65,10 +65,12 @@ def main(tree, options): svcs = current.strip('\"\n').split(" ") new_svcs = [ns for ns in value if ns not in svcs] new_svcs.extend(svcs) + # pylint: disable=consider-using-f-string sys.stdout.write('GREENBOOT_MONITOR_SERVICES="{0}"\n'.format(" ".join(new_svcs))) with open(config_file, "a", encoding="utf8") as f: for key, value in changes.items(): if key == "monitor_services": + # pylint: disable=consider-using-f-string f.write('GREENBOOT_MONITOR_SERVICES="{0}"\n'.format(" ".join(value))) return 0