Skip to content

Commit

Permalink
use getstatusoutput for both
Browse files Browse the repository at this point in the history
Signed-off-by: maipbui <maibui@microsoft.com>
  • Loading branch information
maipbui committed Mar 8, 2023
1 parent c19958a commit 1443f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions show/plugins/barefoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import subprocess
from sonic_py_common import device_info
from sonic_py_common.general import getstatusoutput_noshell_pipe, check_output_pipe
from sonic_py_common.general import getstatusoutput_noshell_pipe

@click.group()
def barefoot():
Expand All @@ -28,7 +28,7 @@ def profile():
click.echo('Current profile: ', nl=False)
cmd0 = ['docker', 'exec', '-it', 'syncd', 'readlink', '/opt/bfn/install']
cmd1 = ['sed', r's/install_\\\(.\*\\\)_profile/\\1/']
check_output_pipe(cmd0, cmd1)
getstatusoutput_noshell_pipe(cmd0, cmd1)

# Exclude current and unsupported profiles
opts = ''
Expand Down

0 comments on commit 1443f47

Please sign in to comment.