Skip to content

Commit a6a52f0

Browse files
committed
update example
1 parent ac5da81 commit a6a52f0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ terraform {
1818
required_providers {
1919
port = {
2020
source = "port-labs/port-labs"
21-
version = "~> 0.0.1"
21+
version = "~> 0.2.0"
2222
}
2323
}
2424
}

examples/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
port = {
44
source = "port-labs/port-labs"
5-
version = "~> 0.0.1"
5+
version = "~> 0.2.0"
66
}
77
}
88
}

port/provider.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ func Provider() *schema.Provider {
2929
Optional: true,
3030
},
3131
"base_url": {
32-
Type: schema.TypeString,
33-
Optional: true,
34-
Default: "https://api.getport.io",
32+
Type: schema.TypeString,
33+
Optional: true,
34+
DefaultFunc: schema.EnvDefaultFunc("PORT_BASE_URL", "https://api.getport.io"),
3535
},
3636
},
3737
ResourcesMap: map[string]*schema.Resource{

0 commit comments

Comments
 (0)