diff --git a/pcieutil/main.py b/pcieutil/main.py index 4bfa1ad5c4..de671b38a2 100644 --- a/pcieutil/main.py +++ b/pcieutil/main.py @@ -91,7 +91,7 @@ def print_test_title(testname): @cli.command() -def pcie_show(): +def show(): '''Display PCIe Device ''' testname = "Display PCIe Device" print_test_title(testname) @@ -107,7 +107,7 @@ def pcie_show(): # Show PCIE Vender ID and Device ID @cli.command() -def pcie_check(): +def check(): '''Check PCIe Device ''' testname = "PCIe Device Check" err = 0 @@ -128,7 +128,7 @@ def pcie_check(): @cli.command() @click.confirmation_option(prompt="Are you sure to overwrite config file pcie.yaml with current pcie device info?") -def pcie_generate(): +def generate(): '''Generate config file with current pci device''' platform_pcieutil.dump_conf_yaml() click.echo("Generate config file pcie.yaml under path %s" % platform_plugins_path) diff --git a/show/platform.py b/show/platform.py index 9162c66b84..7a4f99d7ac 100644 --- a/show/platform.py +++ b/show/platform.py @@ -100,9 +100,9 @@ def ssdhealth(device, verbose, vendor): @click.option('-c', '--check', is_flag=True, help="Check the platfome pcie device") def pcieinfo(check, verbose): """Show Device PCIe Info""" - cmd = "sudo pcieutil pcie-show" + cmd = "sudo pcieutil show" if check: - cmd = "sudo pcieutil pcie-check" + cmd = "sudo pcieutil check" clicommon.run_command(cmd, display_cmd=verbose)