2022-01-21 23:08:29 +00:00
|
|
|
"""
|
2022-12-05 17:58:23 +00:00
|
|
|
Module for return codes that are refrenced in the return payloads of the piscsi module.
|
2022-01-21 23:08:29 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
|
|
class ReturnCodes:
|
2022-12-05 17:58:23 +00:00
|
|
|
"""Class for the return codes used within the piscsi module."""
|
2022-11-30 05:19:17 +00:00
|
|
|
|
2022-01-31 03:15:35 +00:00
|
|
|
DELETEFILE_SUCCESS = 0
|
|
|
|
DELETEFILE_FILE_NOT_FOUND = 1
|
|
|
|
RENAMEFILE_SUCCESS = 10
|
|
|
|
RENAMEFILE_UNABLE_TO_MOVE = 11
|
|
|
|
DOWNLOADFILETOISO_SUCCESS = 20
|
|
|
|
DOWNLOADTODIR_SUCCESS = 30
|
2022-06-15 02:03:56 +00:00
|
|
|
WRITEFILE_SUCCESS = 40
|
|
|
|
WRITEFILE_COULD_NOT_WRITE = 41
|
2022-01-31 03:15:35 +00:00
|
|
|
READCONFIG_SUCCESS = 50
|
|
|
|
READCONFIG_COULD_NOT_READ = 51
|
2022-06-15 02:03:56 +00:00
|
|
|
READCONFIG_INVALID_CONFIG_FILE_FORMAT = 52
|
2022-01-31 03:15:35 +00:00
|
|
|
READDRIVEPROPS_SUCCESS = 70
|
|
|
|
READDRIVEPROPS_COULD_NOT_READ = 71
|
|
|
|
ATTACHIMAGE_COULD_NOT_ATTACH = 80
|
2022-08-12 03:19:02 +00:00
|
|
|
EXTRACTIMAGE_SUCCESS = 90
|
|
|
|
EXTRACTIMAGE_NO_FILES_SPECIFIED = 91
|
|
|
|
EXTRACTIMAGE_NO_FILES_EXTRACTED = 92
|
|
|
|
EXTRACTIMAGE_COMMAND_ERROR = 93
|