Skip to content

Commit

Permalink
adaptor: Fix lint errors
Browse files Browse the repository at this point in the history
Fixes: #1454

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
  • Loading branch information
Qi Feng Huo committed Sep 22, 2023
1 parent 3a1c0d0 commit 7a3c62c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pkg/adaptor/cloud/aws/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ func (_ *Manager) LoadEnv() {
var sgIDsStr, instTypesStr, rootVolumSizeStr, usePublicIpStr string
cloud.DefaultToEnv(&sgIDsStr, "AWS_SG_IDS", "")
if sgIDsStr != "" {
awscfg.SecurityGroupIds.Set(sgIDsStr)
_ = awscfg.SecurityGroupIds.Set(sgIDsStr)
}

cloud.DefaultToEnv(&instTypesStr, "PODVM_INSTANCE_TYPES", "")
if instTypesStr != "" {
awscfg.InstanceTypes.Set(instTypesStr)
_ = awscfg.InstanceTypes.Set(instTypesStr)
}

cloud.DefaultToEnv(&rootVolumSizeStr, "ROOT_VOLUME_SIZE", "")
Expand All @@ -70,7 +70,7 @@ func (_ *Manager) LoadEnv() {
if usePublicIpStr != "" {
awscfg.UsePublicIP, _ = strconv.ParseBool(usePublicIpStr)
}

// TBD
//cloud.DefaultToEnv(&awscfg.Tags, "TAGS", "")
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/adaptor/cloud/ibmcloud/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ func (*Manager) LoadEnv() {
var instanceProfilesStr string
cloud.DefaultToEnv(&instanceProfilesStr, "IBMCLOUD_PODVM_INSTANCE_PROFILE_LIST", "")
if instanceProfilesStr != "" {
ibmcloudVPCConfig.InstanceProfiles.Set(instanceProfilesStr)
_ = ibmcloudVPCConfig.InstanceProfiles.Set(instanceProfilesStr)
}

var imageIDsStr string
cloud.DefaultToEnv(&imageIDsStr, "IBMCLOUD_PODVM_IMAGE_ID", "")
if imageIDsStr != "" {
ibmcloudVPCConfig.Images.Set(imageIDsStr)
_ = ibmcloudVPCConfig.Images.Set(imageIDsStr)
}
}

Expand Down

0 comments on commit 7a3c62c

Please sign in to comment.