Fix Gaiia: subnet -> ipRange on NetworkSiteIpBlock
This commit is contained in:
parent
e3c730a8e9
commit
b8a737ddf4
2 changed files with 3 additions and 2 deletions
|
|
@ -73,7 +73,8 @@ defmodule Towerops.Gaiia.Client do
|
|||
ipBlocks(first: 100) {
|
||||
edges {
|
||||
node {
|
||||
subnet
|
||||
id
|
||||
ipRange
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ defmodule Towerops.Gaiia.Sync do
|
|||
|
||||
defp map_network_site(node) do
|
||||
ip_block_edges = get_in(node, ["ipBlocks", "edges"]) || []
|
||||
ip_blocks = Enum.map(ip_block_edges, & &1["node"]["subnet"])
|
||||
ip_blocks = Enum.map(ip_block_edges, & &1["node"]["ipRange"])
|
||||
|
||||
%{
|
||||
gaiia_id: node["id"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue