Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix: update error code for vhd not found (#4150)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsturtevant committed Jan 7, 2021
1 parent bd397bc commit bcc8a73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/engine/cse.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ var cseErrorCodes = map[string]int{
"ERR_CIS_ASSIGN_FILE_PERMISSION": 112,
"ERR_PACKER_COPY_FILE": 113,
"ERR_CIS_APPLY_PASSWORD_CONFIG": 115,
"ERR_VHD_FILE_NOT_FOUND": 124,
"ERR_VHD_BUILD_ERROR": 125, // Deprecated
"ERR_AZURE_STACK_GET_ARM_TOKEN": 120,
"ERR_AZURE_STACK_GET_NETWORK_CONFIGURATION": 121,
"ERR_AZURE_STACK_GET_SUBNET_PREFIX": 122,
"ERR_AZURE_STACK_GET_SDN_INTERFACES": 123,
"ERR_VHD_BUILD_ERROR": 125, // Deprecated
"ERR_IOVISOR_KEY_DOWNLOAD_TIMEOUT": 166,
"ERR_IOVISOR_APT_KEY_TIMEOUT": 167,
"ERR_BCC_INSTALL_TIMEOUT": 168,
Expand All @@ -80,6 +79,7 @@ var cseErrorCodes = map[string]int{
"ERR_CRI_SLICE_SETUP_FAIL": 183,
"ERR_DEB_DOWNLOAD_TIMEOUT": 184,
"ERR_DEB_PKG_ADD_FAIL": 185,
"ERR_VHD_FILE_NOT_FOUND": 186,
}

func GetCSEErrorCode(errorType string) int {
Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/cse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestGetCSEErrorCode(t *testing.T) {
"ERR_CIS_ASSIGN_FILE_PERMISSION": 112,
"ERR_PACKER_COPY_FILE": 113,
"ERR_CIS_APPLY_PASSWORD_CONFIG": 115,
"ERR_VHD_FILE_NOT_FOUND": 124,
"ERR_VHD_FILE_NOT_FOUND": 186,
"ERR_VHD_BUILD_ERROR": 125,
"ERR_AZURE_STACK_GET_ARM_TOKEN": 120,
"ERR_AZURE_STACK_GET_NETWORK_CONFIGURATION": 121,
Expand Down

0 comments on commit bcc8a73

Please sign in to comment.