Skip to content

Commit 5634ed6

Browse files
Co-authored-by: Çağatay Gürtürk <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Çağatay Gürtürk <[email protected]>
1 parent bb3a835 commit 5634ed6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/3934.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
compute: Fixed bug with `google_netblock_ip_ranges` data source failing to read from the correct URL
3+
```

google-beta/data_source_google_netblock_ip_ranges.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func dataSourceGoogleNetblockIpRangesRead(d *schema.ResourceData, meta interface
7070
d.Set("cidr_blocks_ipv6", CidrBlocks["cidr_blocks_ipv6"])
7171
case "google-netblocks":
7272
// https://cloud.google.com/vpc/docs/configure-private-google-access?hl=en#ip-addr-defaults
73-
const GOOGLE_NETBLOCK_URL = "http://www.gstatic.com/ipranges/goog.json"
73+
const GOOGLE_NETBLOCK_URL = "https://www.gstatic.com/ipranges/goog.json"
7474
CidrBlocks, err := getCidrBlocksFromUrl(GOOGLE_NETBLOCK_URL)
7575

7676
if err != nil {

0 commit comments

Comments
 (0)