Skip to content

Commit 37177b1

Browse files
committed
Fix regex to include FQDN
1 parent 11e3e34 commit 37177b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/kayobe/ansible/deploy-radosgw-usage-exporter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
vars:
5555
ec2: "{{ credential.stdout | from_json | first }}"
5656
host: "{{ endpoint.stdout | from_json | first }}"
57-
radosgw_server: "{{ host.URL | regex_replace('(https?://)([0-9.]+):([0-9]+)/.*', '\\1\\2:\\3') }}"
57+
radosgw_server: "{{ host.URL | regex_replace('(https?://)([^:/]+):([0-9]+)/.*', '\\1\\2:\\3') }}" # Drop Swift api address
5858
become: true
5959

6060
- name: Get target ip addresses

0 commit comments

Comments
 (0)