Skip to content

Commit efc2d84

Browse files
committed
Forgot to embed Azure data
1 parent a9704ac commit efc2d84

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

azure_vm.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// azure_vm.go with updated fields
22
package ec2instancesinfo
33

4+
import _ "embed"
5+
46
// AzureInstanceData represents data about a specific Azure VM instance type
57
type AzureInstanceData struct {
68
ACU int `json:"ACU"`
@@ -68,6 +70,7 @@ type AzureOSPricing struct {
6870

6971
// Global variables for Azure VM data
7072
var (
73+
//go:embed data/azure-instances.json
7174
azureDataBody []byte
7275
azureBackupDataBody []byte
7376
azureStaticDataBody = []byte(`[]`) // Will be replaced with actual embedded data

azure_vm_data.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ func AzureUpdater(refreshDays int, apiHost, apiKey *string) error {
166166
}
167167
}
168168
}
169-
}
169+
}

0 commit comments

Comments
 (0)