From 2375061cfae1f11ef47cd314258265b35021c027 Mon Sep 17 00:00:00 2001 From: Josh Patterson Date: Mon, 23 Feb 2026 13:19:03 -0500 Subject: [PATCH] so-yaml.py tell which key not found --- salt/manager/tools/sbin/so-yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/manager/tools/sbin/so-yaml.py b/salt/manager/tools/sbin/so-yaml.py index 13ece5062..fd5d8b056 100755 --- a/salt/manager/tools/sbin/so-yaml.py +++ b/salt/manager/tools/sbin/so-yaml.py @@ -343,7 +343,7 @@ def get(args): content = loadYaml(filename) output = getKeyValue(content, key) if output is None: - print("Not found", file=sys.stderr) + print(f"Key '{key}' not found by so-yaml.py", file=sys.stderr) return 2 print(yaml.safe_dump(output))