Blame SOURCES/BZ_1931751-nmstate-fix-return-code.patch

a23721
From b26ab850172a41557cad42cc011bd00d7c108c88 Mon Sep 17 00:00:00 2001
a23721
From: Gris Ge <fge@redhat.com>
a23721
Date: Tue, 23 Feb 2021 13:52:19 +0800
a23721
Subject: [PATCH] nmstatectl: Fix return code of set command
a23721
a23721
The deprecated command `set` should still return the error like
a23721
old behaviour.
a23721
a23721
Signed-off-by: Gris Ge <fge@redhat.com>
a23721
---
a23721
 nmstatectl/nmstatectl.py | 2 +-
a23721
 1 file changed, 1 insertion(+), 1 deletion(-)
a23721
a23721
diff --git a/nmstatectl/nmstatectl.py b/nmstatectl/nmstatectl.py
a23721
index df59942..c94d603 100644
a23721
--- a/nmstatectl/nmstatectl.py
a23721
+++ b/nmstatectl/nmstatectl.py
a23721
@@ -323,7 +323,7 @@ def show(args):
a23721
 
a23721
 def set(args):
a23721
     warnings.warn("Using 'set' is deprecated, use 'apply' instead.")
a23721
-    apply(args)
a23721
+    return apply(args)
a23721
 
a23721
 
a23721
 def apply(args):
a23721
-- 
a23721
2.27.0
a23721