Skip to content

Commit

Permalink
IBM: Support setting zone for disk
Browse files Browse the repository at this point in the history
  • Loading branch information
ish-hcc committed Apr 17, 2024
1 parent 900621a commit 86a8e8e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (diskHandler *IbmDiskHandler) CreateDisk(diskReqInfo irs.DiskInfo) (irs.Dis
Name: &diskReqInfo.DiskType,
},
Zone: &vpcv1.ZoneIdentity{
Name: &diskHandler.Region.Zone,
Name: &diskReqInfo.Zone,
},
Name: &diskReqInfo.IId.NameId,
Capacity: ptrCapacity,
Expand Down Expand Up @@ -293,6 +293,7 @@ func (diskHandler *IbmDiskHandler) ToIRSDisk(disk *vpcv1.Volume) *irs.DiskInfo {
SystemId: *disk.ID,
NameId: *disk.Name,
},
Zone: *disk.Zone.Name,
DiskType: *disk.Profile.Name,
DiskSize: strCapacity,
Status: diskStatus,
Expand Down

0 comments on commit 86a8e8e

Please sign in to comment.