summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/helpers/digitalocean.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/helpers/digitalocean.py b/cloudinit/sources/helpers/digitalocean.py
index 257989e8..693f8d5c 100644
--- a/cloudinit/sources/helpers/digitalocean.py
+++ b/cloudinit/sources/helpers/digitalocean.py
@@ -162,7 +162,7 @@ def convert_network_configuration(config, dns_servers):
continue
sub_part = _get_subnet_part(raw_subnet)
- if netdef in ('private', 'anchor_ipv4', 'anchor_ipv6'):
+ if nic_type != "public" or "anchor" in netdef:
del sub_part['gateway']
subnets.append(sub_part)