Remove useBetaAPI option from getReplicaZoneURI
This is a follow up PR for #70716. Remove useBetaAPI option since Regional PD is already GA.
This commit is contained in:
@@ -158,7 +158,7 @@ func (manager *gceServiceManager) CreateRegionalDiskOnCloudProvider(
|
|||||||
fullyQualifiedReplicaZones := []string{}
|
fullyQualifiedReplicaZones := []string{}
|
||||||
for _, replicaZone := range replicaZones.UnsortedList() {
|
for _, replicaZone := range replicaZones.UnsortedList() {
|
||||||
fullyQualifiedReplicaZones = append(
|
fullyQualifiedReplicaZones = append(
|
||||||
fullyQualifiedReplicaZones, manager.getReplicaZoneURI(replicaZone, true))
|
fullyQualifiedReplicaZones, manager.getReplicaZoneURI(replicaZone))
|
||||||
}
|
}
|
||||||
|
|
||||||
diskToCreate := &compute.Disk{
|
diskToCreate := &compute.Disk{
|
||||||
@@ -359,15 +359,8 @@ func (manager *gceServiceManager) getDiskTypeURI(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (manager *gceServiceManager) getReplicaZoneURI(zone string, useBetaAPI bool) string {
|
func (manager *gceServiceManager) getReplicaZoneURI(zone string) string {
|
||||||
var getProjectsAPIEndpoint string
|
return manager.getProjectsAPIEndpoint() + fmt.Sprintf(
|
||||||
if useBetaAPI {
|
|
||||||
getProjectsAPIEndpoint = manager.getProjectsAPIEndpointBeta()
|
|
||||||
} else {
|
|
||||||
getProjectsAPIEndpoint = manager.getProjectsAPIEndpoint()
|
|
||||||
}
|
|
||||||
|
|
||||||
return getProjectsAPIEndpoint + fmt.Sprintf(
|
|
||||||
replicaZoneURITemplateSingleZone,
|
replicaZoneURITemplateSingleZone,
|
||||||
manager.gce.projectID,
|
manager.gce.projectID,
|
||||||
zone)
|
zone)
|
||||||
|
Reference in New Issue
Block a user