We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71dc43e commit 7953660Copy full SHA for 7953660
utils/src/com/cloud/utils/net/NetUtils.java
@@ -199,7 +199,7 @@ public static String getDefaultHostIp() {
199
200
public static String getDefaultEthDevice() {
201
if (SystemUtils.IS_OS_MAC) {
202
- String defDev = Script.runSimpleBashScript("/sbin/route -n get default | grep interface | awk '{print $2}'");
+ String defDev = Script.runSimpleBashScript("/sbin/route -n get default 2> /dev/null | grep interface | awk '{print $2}'");
203
return defDev;
204
}
205
String defaultRoute = Script.runSimpleBashScript("/sbin/route | grep default");
0 commit comments