Skip to content

Commit

Permalink
not to query cloudinit image
Browse files Browse the repository at this point in the history
  • Loading branch information
Shenwen Yin committed Jul 25, 2022
1 parent 242d040 commit 1338f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/resource_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,7 @@ func readVmDisks(ctx context.Context, d *schema.ResourceData, ct *cloudtower.Cli
VM: &models.VMWhereInput{
ID: &id,
},
CloudInitImagePathNot: nil,
},
}
vmDisks, err := ct.Api.VMDisk.GetVMDisks(gp)
Expand Down Expand Up @@ -1637,7 +1638,6 @@ func readVmDisks(ctx context.Context, d *schema.ResourceData, ct *cloudtower.Cli
vmVolume := vmVolumeMap[*v.VMVolume.ID]
vmVolumesSlice[idx] = vmVolume
}

return vmDisks.Payload, vmVolumesSlice, nil
}

Expand Down

0 comments on commit 1338f95

Please sign in to comment.