Index: lib/cros_build_lib.py |
diff --git a/lib/cros_build_lib.py b/lib/cros_build_lib.py |
index 138bfa7db396112c56b4f1a8ad4980e459493bdb..d7da384e09b48f605246b027fa6eaa4767dbdbd0 100644 |
--- a/lib/cros_build_lib.py |
+++ b/lib/cros_build_lib.py |
@@ -256,7 +256,7 @@ def GetIPAddress(device='eth0'): |
this method gives you a generic way to get the address so you are reachable |
either via a VM or remote machine on the same network. |
""" |
- ifconfig_output = RunCommand(['sudo', 'ifconfig', device], |
+ ifconfig_output = RunCommand(['/sbin/ifconfig', device], |
redirect_stdout=True, print_cmd=False) |
match = re.search('.*inet addr:(\d+\.\d+\.\d+\.\d+).*', ifconfig_output) |
if match: |