Skip to content

Commit

Permalink
Fix empty error log printing when status is not an error
Browse files Browse the repository at this point in the history
  • Loading branch information
powerkimhub committed Aug 23, 2024
1 parent 5284829 commit e71b662
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ func ExtractVMSpecInfo(Region string, instanceTypeInfo ecs.InstanceType) irs.VMS

//KeyValue 목록 처리
keyValueList, errKeyValue := ConvertKeyValueList(instanceTypeInfo)
cblogger.Error(errKeyValue)
if errKeyValue != nil {
cblogger.Error(errKeyValue)
return irs.VMSpecInfo{}
}
vmSpecInfo.KeyValueList = keyValueList

return vmSpecInfo
Expand Down

0 comments on commit e71b662

Please sign in to comment.