From 12ce8b309d2535ba7277da4561bdd80bb89185be Mon Sep 17 00:00:00 2001 From: Peri Diane Jones Date: Sat, 11 Aug 2018 22:28:13 +0000 Subject: T772 allow stow-away arguments in the script name field https://phabricator.vyos.net/T772 --- src/system/vrrp-script-wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/system/vrrp-script-wrapper.py') diff --git a/src/system/vrrp-script-wrapper.py b/src/system/vrrp-script-wrapper.py index 5d6aa6c55..ce9142b7d 100755 --- a/src/system/vrrp-script-wrapper.py +++ b/src/system/vrrp-script-wrapper.py @@ -58,7 +58,7 @@ if (old_state is None) or (old_state != args.state): syslog.syslog(syslog.LOG_NOTICE, 'Running transition script {0} for VRRP group {1}'.format(args.script, args.group)) try: - ret = subprocess.call([args.script, args.state, args.interface, args.group]) + ret = subprocess.call("%s %s %s %s" % ( args.script, args.state, args.interface, args.group), shell=True) if ret != 0: syslog.syslog(syslog.LOG_ERR, "Transition script {0} failed, exit status: {1}".format(args.script, ret)) exitcode = ret -- cgit v1.2.3