Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
megaport_port: marketplaceVisibility is a bool
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitrios Karagiannis <dhkarag@gmail.com>
  • Loading branch information
alkar committed Oct 28, 2019
1 parent 1df08f2 commit 0ae5313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion megaport/resource_megaport_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ func resourceMegaportPortRead(d *schema.ResourceData, m interface{}) error {
d.Set("speed", p.PortSpeed)
d.Set("term", p.ContractTermMonths)
d.Set("associated_vxcs", schema.NewSet(schema.HashResource(resourceMegaportPrivateVxc()), flattenVxcList(p.AssociatedVxcs)))
d.Set("marketplace_visibility", p.MarketplaceVisibility)
d.Set("marketplace_visibility", "private")
if p.MarketplaceVisibility {
d.Set("marketplace_visibility", "public")
}
//d.Set("invoice_reference", p.) // TODO: is this even exported?
return nil
}
Expand Down

0 comments on commit 0ae5313

Please sign in to comment.