diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-05-09 16:22:52 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-05-09 16:22:52 +0000 |
| commit | 906e65b72f030d2379504013efa46275f43b60bc (patch) | |
| tree | ad2e64d83a6f5af2ab94efdc8a532a1c088cd6b2 /nova | |
| parent | 3e126c83bf6c26de971c84700888deeaee280a50 (diff) | |
| parent | c0bbc4be369d0b20cd3c5985eb48b8ec66876804 (diff) | |
Merge "Run ip link show in linux_net._device_exists as root"
Diffstat (limited to 'nova')
| -rwxr-xr-x | nova/network/linux_net.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py index ed7af4825..92f0afb4c 100755 --- a/nova/network/linux_net.py +++ b/nova/network/linux_net.py @@ -819,7 +819,7 @@ def _execute(*cmd, **kwargs): def _device_exists(device): """Check if ethernet device exists.""" (_out, err) = _execute('ip', 'link', 'show', 'dev', device, - check_exit_code=False) + check_exit_code=False, run_as_root=True) return not err |
