Skip to content

Commit

Permalink
peerpod-ctl: Fix problem in LoadEnv in IBMCloud Provider
Browse files Browse the repository at this point in the history
Fixes: confidential-containers#1454

Signed-off-by: Qi Feng Huo <[email protected]>
  • Loading branch information
Qi Feng Huo committed Sep 21, 2023
1 parent dcd0287 commit 095a786
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/adaptor/cloud/ibmcloud/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ func (*Manager) LoadEnv() {
if instanceProfilesStr != "" {
ibmcloudVPCConfig.InstanceProfiles.Set(instanceProfilesStr)
}

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

func (*Manager) NewProvider() (cloud.Provider, error) {
Expand Down

0 comments on commit 095a786

Please sign in to comment.