Updated error code naming to be inline with Host
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I6c66640742a25361ad6399763ee442598ffb0ac6
[ROCm/amdsmi commit: 27cd092c6d]
このコミットが含まれているのは:
@@ -182,7 +182,7 @@ class AmdSmiMissingParameterValueException(AmdSmiException):
|
||||
self.stdout_message = f"{common_message} Error code: {self.value}"
|
||||
|
||||
|
||||
class AmdSmiNotSupportedCommandException(AmdSmiException):
|
||||
class AmdSmiCommandNotSupportedException(AmdSmiException):
|
||||
def __init__(self, command, outputformat: str):
|
||||
super().__init__()
|
||||
self.value = -7
|
||||
|
||||
@@ -1243,7 +1243,7 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
message = message.split("'")[0]
|
||||
# Check if the command is possible in other system configurations and error accordingly
|
||||
if message in self.possible_commands:
|
||||
raise amdsmi_cli_exceptions.AmdSmiNotSupportedCommandException(message, outputformat)
|
||||
raise amdsmi_cli_exceptions.AmdSmiCommandNotSupportedException(message, outputformat)
|
||||
raise amdsmi_cli_exceptions.AmdSmiInvalidCommandException(message, outputformat)
|
||||
elif "unrecognized arguments: " in message:
|
||||
l = len("unrecognized arguments: ")
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする