From 5fa1c42c563ce3846ac5c6baa8dcab981c695c36 Mon Sep 17 00:00:00 2001 From: Yun Zheng Hu Date: Tue, 12 Sep 2023 17:01:25 +0200 Subject: [PATCH] T2405: revert command.lstrip() --- python/vyos/utils/process.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/vyos/utils/process.py b/python/vyos/utils/process.py index 150d0eca74c..e09c7d86d73 100644 --- a/python/vyos/utils/process.py +++ b/python/vyos/utils/process.py @@ -138,7 +138,6 @@ def cmd(command, flag='', shell=None, input=None, timeout=None, env=None, (default is OSError) with the error code expect: a list of error codes to consider as normal """ - command = command.lstrip() if isinstance(command, str) else command decoded, code = popen( command, flag, stdout=stdout, stderr=stderr, @@ -170,7 +169,6 @@ def rc_cmd(command, flag='', shell=None, input=None, timeout=None, env=None, % rc_cmd('ip link show dev eth99') (1, 'Device "eth99" does not exist.') """ - command = command.lstrip() if isinstance(command, str) else command out, code = popen( command, flag, stdout=stdout, stderr=stderr,