Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/extension/src/Constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,8 @@ class ExitCode(EnumBackport):
CreateLoggerFailure = 86
CreateStatusWriterFailure = 87
HandlerFailed = 88
MissingConfig = 89
OperationNotSupported = 90
AutoAssessmentFailure = 91
OperationNotSupported = 89
AutoAssessmentFailure = 90

class AgentEnvVarStatusCode(EnumBackport):
AGENT_ENABLED = "AGENT_ENABLED"
Expand Down
2 changes: 1 addition & 1 deletion src/extension/src/EnableCommandHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def execute_handler_action(self):
self.seq_no = self.ext_config_settings_handler.get_seq_no(is_enable_request=True)
if self.seq_no is None:
self.logger.log_error("Sequence number for current operation not found")
exit(Constants.ExitCode.MissingConfig)
exit(Constants.ExitCode.ConfigurationError)

# read status file, to load any preserve existing context
self.ext_output_status_handler.read_file(self.seq_no)
Expand Down
2 changes: 1 addition & 1 deletion src/extension/src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main(argv):
config_folder = ext_env_handler.config_folder
if config_folder is None or not os.path.exists(config_folder):
logger.log_error("Config folder not found at [{0}].".format(repr(config_folder)))
exit(Constants.ExitCode.MissingConfig)
exit(Constants.ExitCode.ConfigurationError)

ext_config_settings_handler = ExtConfigSettingsHandler(logger, json_file_handler, config_folder)
core_state_handler = CoreStateHandler(config_folder, json_file_handler)
Expand Down