diff --git a/gcp/couchbase-server/resources/firewall_rule.py b/gcp/couchbase-server/resources/firewall_rule.py index c915e79..1a7146d 100644 --- a/gcp/couchbase-server/resources/firewall_rule.py +++ b/gcp/couchbase-server/resources/firewall_rule.py @@ -5,6 +5,10 @@ def generate_config(context): network = context.properties['network'] if isinstance(network, list): network = network[0] + + if network == "default": + network = 'projects/{}/global/networks/{}'.format(project, network) + suffix = context.properties['nameSuffix'] project = context.env['project'] sourceCidr = context.properties['accessCIDR']