diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 21:04:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 21:04:41 +0000 |
commit | b37ff8756eeb4882c7fcd5864c12b850d2983607 (patch) | |
tree | c80a6f1066737bc4ea7f5e903494b1fcc6a031e9 /heartbeat/openstack-info.in | |
parent | Adding debian version 1:4.13.0-1. (diff) | |
download | resource-agents-b37ff8756eeb4882c7fcd5864c12b850d2983607.tar.xz resource-agents-b37ff8756eeb4882c7fcd5864c12b850d2983607.zip |
Merging upstream version 1:4.14.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'heartbeat/openstack-info.in')
-rwxr-xr-x | heartbeat/openstack-info.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/heartbeat/openstack-info.in b/heartbeat/openstack-info.in index 6502f1d..876e833 100755 --- a/heartbeat/openstack-info.in +++ b/heartbeat/openstack-info.in @@ -164,10 +164,12 @@ OSInfoStats() { --format json \ --column fixed_ips \ ${port_id}") - subnet_id=$(echo "$subnet_result" | + subnet_ids=$(echo "$subnet_result" | grep -P '\"subnet_id\": \".*\",$' | grep -P -o '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}') - value="${value}${subnet_id}:${port_id}," + for subnet_id in $subnet_ids; do + value="${value}${subnet_id}:${port_id}," + done done value=${value%,} |