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:
parent
d91a559fb5
commit
40af440cce
@ -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"`
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user