Skip to content

Commit

Permalink
Merge pull request #207 from couchbase-partners/GCP-Custom-Network
Browse files Browse the repository at this point in the history
fixed an error on network url
  • Loading branch information
malscent authored Jun 27, 2024
2 parents ff1c26f + fd99eeb commit 823cfef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcp/couchbase-server/resources/firewall_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 823cfef

Please sign in to comment.