mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 19:12:59 +00:00
fix some linter errors
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
parent
d91a559fb5
commit
40af440cce
@ -18,6 +18,7 @@ type Model struct {
|
|||||||
DNS DNSValue `tfsdk:"dns"`
|
DNS DNSValue `tfsdk:"dns"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ModelDNS represents the DNS model of the Cloud-Init.
|
||||||
type ModelDNS struct {
|
type ModelDNS struct {
|
||||||
Domain types.String `tfsdk:"domain"`
|
Domain types.String `tfsdk:"domain"`
|
||||||
Servers types.List `tfsdk:"servers"`
|
Servers types.List `tfsdk:"servers"`
|
||||||
|
@ -81,6 +81,7 @@ func (d *CustomStorageDevice) PathInDatastore() *string {
|
|||||||
return &pathInDatastore
|
return &pathInDatastore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetDatastoreID returns datastore ID part of FileVolume or empty string if it is not yet allocated.
|
||||||
func (d *CustomStorageDevice) GetDatastoreID() string {
|
func (d *CustomStorageDevice) GetDatastoreID() string {
|
||||||
if datastoreID, _, found := strings.Cut(d.FileVolume, ":"); found {
|
if datastoreID, _, found := strings.Cut(d.FileVolume, ":"); found {
|
||||||
return datastoreID
|
return datastoreID
|
||||||
|
Loading…
Reference in New Issue
Block a user