Skip to content

Commit

Permalink
Change PublicIPRequired to a string to support IP moving
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjeffries committed Mar 27, 2020
1 parent c73d51f commit d0635c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type InstanceConfig struct {
ReverseDNS string `json:"reverse_dns"`
Size string `json:"size"`
Region string `json:"region"`
PublicIPRequired bool `json:"public_ip_required"`
PublicIPRequired string `json:"public_ip_required"`
NetworkID string `json:"network_id"`
TemplateID string `json:"template_id"`
SnapshotID string `json:"snapshot_id"`
Expand Down Expand Up @@ -157,7 +157,7 @@ func (c *Client) NewInstanceConfig() (*InstanceConfig, error) {
ReverseDNS: "",
Size: "g2.xsmall",
Region: "lon1",
PublicIPRequired: true,
PublicIPRequired: "true",
NetworkID: network.ID,
TemplateID: template.ID,
SnapshotID: "",
Expand Down

0 comments on commit d0635c7

Please sign in to comment.