Skip to content

Commit 28d358f

Browse files
authored
[show] Run fwutil with sudo (sonic-net#1364)
**- What I did** Added ability to run `show platform firmware` commands without `sudo`, as described in the [design document](https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md#platform-component-firmware-show-commands): **- How I did it** Made `show platform firmware` implementation run `fwutil` with `sudo` Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
1 parent a50b7a2 commit 28d358f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

show/platform.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def temperature():
133133
@click.argument('args', nargs=-1, type=click.UNPROCESSED)
134134
def firmware(args):
135135
"""Show firmware information"""
136-
cmd = "fwutil show {}".format(" ".join(args))
136+
cmd = "sudo fwutil show {}".format(" ".join(args))
137137

138138
try:
139139
subprocess.check_call(cmd, shell=True)

0 commit comments

Comments
 (0)