Skip to content

Commit

Permalink
Fix regular expression for vsphere datastores
Browse files Browse the repository at this point in the history
The regular expression for vsphere datastores was not working as expected
when there were multiple datastores. This was because the regular expression
conflicted with using entombed credhub variables that are wrapped in
parenthesis, causing three parenthesis in a row.
  • Loading branch information
dennisjbell committed Jul 16, 2024
1 parent 4665919 commit 0bcd6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overlay/cpis/vsphere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ meta:
disk_path: (( concat genesis.env "/disks" ))

joined_vsphere_ephemeral_datastores: (( join "|" params.vsphere_ephemeral_datastores ))
vsphere_ephemeral_datastores: (( concat "^(" meta.joined_vsphere_ephemeral_datastores ")$" ))
vsphere_ephemeral_datastores: (( concat "^(?:" meta.joined_vsphere_ephemeral_datastores ")$" ))
joined_vsphere_persistent_datastores: (( join "|" params.vsphere_persistent_datastores ))
vsphere_persistent_datastores: (( concat "^(" meta.joined_vsphere_persistent_datastores ")$" ))
vsphere_persistent_datastores: (( concat "^(?:" meta.joined_vsphere_persistent_datastores ")$" ))

bosh-variables:
vcenter_dc: (( grab params.vsphere_datacenter ))
Expand Down

0 comments on commit 0bcd6e3

Please sign in to comment.