Skip to content

Commit

Permalink
Improve json generation.
Browse files Browse the repository at this point in the history
Remove azure's brazilus with zero coordinates
  • Loading branch information
dohnto committed Dec 2, 2023
1 parent 5d73e20 commit b22c5ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
7 changes: 2 additions & 5 deletions gazetteer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ The `*.json` files are autogenerated.

Use following commands to generate them:
```bash
bash generate-latlong.sh aws
bash generate-latlong.sh gcp
az account list-locations --query "[?not_null(metadata.latitude)] .{key:name, name:regionalDisplayName, provider: 'azure', latitude:metadata.latitude, longitude:metadata.longitude} " | jq '.[].latitude |= tonumber | .[].longitude |= tonumber' > azure.json

echo "local aws = import 'aws.json'; local gcp = import 'gcp.json'; local azure = import 'azure.json'; local oracle = import 'oracle.json'; aws + gcp + azure + oracle" | jsonnet - > cloud-regions.json
make clean
make
```
7 changes: 0 additions & 7 deletions gazetteer/azure.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,6 @@
"name": "(Middle East) Qatar Central",
"provider": "azure"
},
{
"key": "brazilus",
"latitude": 0,
"longitude": 0,
"name": "(South America) Brazil US",
"provider": "azure"
},
{
"key": "eastusstg",
"latitude": 37.3719,
Expand Down
7 changes: 0 additions & 7 deletions gazetteer/cloud-regions.json
Original file line number Diff line number Diff line change
Expand Up @@ -671,13 +671,6 @@
"name": "(Middle East) Qatar Central",
"provider": "azure"
},
{
"key": "brazilus",
"latitude": 0,
"longitude": 0,
"name": "(South America) Brazil US",
"provider": "azure"
},
{
"key": "eastusstg",
"latitude": 37.371899999999997,
Expand Down

0 comments on commit b22c5ac

Please sign in to comment.