Skip to content

Commit 4c60d45

Browse files
Arne HingstArne Hingst
authored andcommitted
Change fetch for management ip address to a more global approach
1 parent d748b16 commit 4c60d45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/xen/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function xenapi_ip_on() {
202202
local bridge_or_net_name
203203
bridge_or_net_name=$1
204204

205-
ifconfig $(bridge_for "$bridge_or_net_name") | grep "inet addr" | cut -d ":" -f2 | sed "s/ .*//"
205+
ifconfig $(bridge_for "$bridge_or_net_name") | grep "inet " | cut -d ":" -f2 | sed "s/ .*//"
206206
}
207207

208208
function xenapi_is_listening_on() {

0 commit comments

Comments
 (0)