File tree 2 files changed +2
-2
lines changed
pkg/gce-cloud-provider/compute
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1129,7 +1129,7 @@ func codeForGCEOpError(err computev1.OperationErrorErrors) codes.Code {
1129
1129
"RESOURCE_NOT_FOUND" : codes .NotFound ,
1130
1130
"RESOURCE_ALREADY_EXISTS" : codes .AlreadyExists ,
1131
1131
"RESOURCE_IN_USE_BY_ANOTHER_RESOURCE" : codes .InvalidArgument ,
1132
- "OPERATION_CANCELED_BY_USER" : codes .Aborted ,
1132
+ "OPERATION_CANCELED_BY_USER" : codes .Canceled ,
1133
1133
"QUOTA_EXCEEDED" : codes .ResourceExhausted ,
1134
1134
"ZONE_RESOURCE_POOL_EXHAUSTED" : codes .Unavailable ,
1135
1135
"ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS" : codes .Unavailable ,
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ func TestCodeForGCEOpError(t *testing.T) {
122
122
{
123
123
name : "OPERATION_CANCELED_BY_USER error" ,
124
124
inputErr : computev1.OperationErrorErrors {Code : "OPERATION_CANCELED_BY_USER" },
125
- expCode : codes .Aborted ,
125
+ expCode : codes .Canceled ,
126
126
},
127
127
{
128
128
name : "QUOTA_EXCEEDED error" ,
You can’t perform that action at this time.
0 commit comments