summaryrefslogtreecommitdiffstats
path: root/heartbeat/ocivip
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 21:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 21:04:41 +0000
commit3877c41d07e7c79ae64a17b6a495901299ecfe08 (patch)
tree2fb504f23b71e595f7d7b961ed7ff42ea782f3f0 /heartbeat/ocivip
parentReleasing progress-linux version 1:4.13.0-1~progress7.99u1. (diff)
downloadresource-agents-3877c41d07e7c79ae64a17b6a495901299ecfe08.tar.xz
resource-agents-3877c41d07e7c79ae64a17b6a495901299ecfe08.zip
Merging upstream version 1:4.14.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'heartbeat/ocivip')
-rwxr-xr-xheartbeat/ocivip2
1 files changed, 1 insertions, 1 deletions
diff --git a/heartbeat/ocivip b/heartbeat/ocivip
index 053646d..f146807 100755
--- a/heartbeat/ocivip
+++ b/heartbeat/ocivip
@@ -221,7 +221,7 @@ SECONDARY_PRIVATE_IP="${OCF_RESKEY_secondary_private_ip}"
CIDR_NETMASK="${OCF_RESKEY_cidr_netmask}"
INTERFACE_ALIAS="${OCF_RESKEY_interface_alias}"
VNIC_ID="$(curl -s -H "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/vnics/ | jq -r '.[0].vnicId')"
-PRIMARY_IFACE=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)')
+PRIMARY_IFACE=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -n1)
case $__OCF_ACTION in
start)