Skip to content

Commit

Permalink
GCE: make configurable boot-disk name by basename
Browse files Browse the repository at this point in the history
  • Loading branch information
powerkimhub committed Jul 1, 2019
1 parent 4884055 commit 423fcfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion farmoni_master/gcehandler/gcehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func CreateInstances(computeService *compute.Service, region string, zone string
instanceIds := make([]*string, maxCount)
for i:=0; i<maxCount; i++ {
instanceName := baseName + strconv.Itoa(i)
diskName := "my-root-pd" + strconv.Itoa(i)
diskName := "my-root-pd" + "-" + baseName + strconv.Itoa(i)
rb := getRequestBody(instanceName, region, zone, projectID, imageURL, machineType,
diskName, minCount, maxCount, subNetwork, networkName, serviceAccoutsMail)

Expand Down

0 comments on commit 423fcfe

Please sign in to comment.