Skip to content

Commit

Permalink
Merge pull request #28 from RiRa12621/rrackow-packet-metadata
Browse files Browse the repository at this point in the history
FIX: adjust packet metadata url and apiVersion for new equinix api
  • Loading branch information
jepio authored Aug 19, 2024
2 parents f78b9f7 + 39cd2a3 commit f3aaab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datasource/metadata/packet/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
)

const (
DefaultAddress = "https://metadata.packet.net/"
apiVersion = ""
DefaultAddress = "https://metadata.platformequinix.com/"
apiVersion = "metadata"
userdataUrl = "userdata"
metadataPath = "metadata"
)
Expand All @@ -50,7 +50,7 @@ type NetworkData struct {
DNS []net.IP `json:"dns"`
}

// Metadata that will be pulled from the https://metadata.packet.net/metadata only. We have the opportunity to add more later.
// Metadata that will be pulled from the https://metadata.platformequinix.com/metadata only. We have the opportunity to add more later.
type Metadata struct {
Hostname string `json:"hostname"`
SSHKeys []string `json:"ssh_keys"`
Expand Down

0 comments on commit f3aaab9

Please sign in to comment.