From b00cc888018e02b9d9089cdb73783c096cc60215 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Mon, 22 Feb 2021 15:43:56 -0500 Subject: [PATCH] [fix] Unreverse apply prompt actions --- salt/common/tools/sbin/so-rule | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/so-rule b/salt/common/tools/sbin/so-rule index 8507fba96..46efca568 100644 --- a/salt/common/tools/sbin/so-rule +++ b/salt/common/tools/sbin/so-rule @@ -49,9 +49,9 @@ def check_apply(args: dict, prompt: bool = True): while answer.lower() not in [ 'y', 'n', '' ]: answer = input(message) if answer.lower() in [ 'n', '' ]: - return subprocess.run(cmd_arr) - else: return 0 + else: + return subprocess.run(cmd_arr) else: return 0