| Index: lib/cros_build_lib.py
|
| diff --git a/lib/cros_build_lib.py b/lib/cros_build_lib.py
|
| index 11fa40cac9cf94813f27c70fda281940124f1f96..138bfa7db396112c56b4f1a8ad4980e459493bdb 100644
|
| --- a/lib/cros_build_lib.py
|
| +++ b/lib/cros_build_lib.py
|
| @@ -256,8 +256,8 @@ 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(['ifconfig', device], redirect_stdout=True,
|
| - print_cmd=False)
|
| + ifconfig_output = RunCommand(['sudo', 'ifconfig', device],
|
| + redirect_stdout=True, print_cmd=False)
|
| match = re.search('.*inet addr:(\d+\.\d+\.\d+\.\d+).*', ifconfig_output)
|
| if match:
|
| return match.group(1)
|
|
|