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
commitb37ff8756eeb4882c7fcd5864c12b850d2983607 (patch)
treec80a6f1066737bc4ea7f5e903494b1fcc6a031e9 /heartbeat/ocivip
parentAdding debian version 1:4.13.0-1. (diff)
downloadresource-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/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)