Skip to content

Commit

Permalink
fix some linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Boldyrev <[email protected]>
  • Loading branch information
bpg committed Jul 8, 2024
1 parent 1d2fc3e commit c73d5f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fwprovider/vm/cloudinit/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions proxmox/nodes/vms/custom_storage_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c73d5f7

Please sign in to comment.