0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 02:31:10 +00:00

fix some linter errors

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Pavel Boldyrev 2024-07-05 08:51:43 -04:00
parent d91a559fb5
commit 40af440cce
No known key found for this signature in database
GPG Key ID: 637146A2A6804C59
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ type Model struct {
DNS DNSValue `tfsdk:"dns"`
}
// ModelDNS represents the DNS model of the Cloud-Init.
type ModelDNS struct {
Domain types.String `tfsdk:"domain"`
Servers types.List `tfsdk:"servers"`

View File

@ -81,6 +81,7 @@ func (d *CustomStorageDevice) PathInDatastore() *string {
return &pathInDatastore
}
// GetDatastoreID returns datastore ID part of FileVolume or empty string if it is not yet allocated.
func (d *CustomStorageDevice) GetDatastoreID() string {
if datastoreID, _, found := strings.Cut(d.FileVolume, ":"); found {
return datastoreID