Skip to content

Commit c7de3dd

Browse files
authored
Updating aws_get_eni_private_ip variable to clarify intent
1 parent 347d030 commit c7de3dd

File tree

1 file changed

+2
-2
lines changed
  • modules/bash-commons/src

1 file changed

+2
-2
lines changed

modules/bash-commons/src/aws.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ function aws_get_eni_private_ip {
190190
eni_id="$(aws_get_eni_id "$network_interfaces_output" "$eni_device_index")"
191191
log_info "Looking up private IP address for ENI $eni_id"
192192

193-
public_ip=$(echo "$network_interfaces_output" | jq -j ".NetworkInterfaces[] | select(.NetworkInterfaceId == \"$eni_id\").PrivateIpAddresses[0].PrivateIpAddress")
193+
private_ip=$(echo "$network_interfaces_output" | jq -j ".NetworkInterfaces[] | select(.NetworkInterfaceId == \"$eni_id\").PrivateIpAddresses[0].PrivateIpAddress")
194194

195-
echo "$public_ip"
195+
echo "$private_ip"
196196
}
197197

198198
# Return the private IP Address of the ENI attached to the given EC2 Instance

0 commit comments

Comments
 (0)