Skip to content

Commit

Permalink
T2405: revert command.lstrip()
Browse files Browse the repository at this point in the history
  • Loading branch information
yunzheng committed Oct 15, 2023
1 parent 3ade816 commit 5fa1c42
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/vyos/utils/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5fa1c42

Please sign in to comment.