summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-05-09 16:22:52 +0000
committerGerrit Code Review <review@openstack.org>2012-05-09 16:22:52 +0000
commit906e65b72f030d2379504013efa46275f43b60bc (patch)
treead2e64d83a6f5af2ab94efdc8a532a1c088cd6b2
parent3e126c83bf6c26de971c84700888deeaee280a50 (diff)
parentc0bbc4be369d0b20cd3c5985eb48b8ec66876804 (diff)
Merge "Run ip link show in linux_net._device_exists as root"
-rwxr-xr-xnova/network/linux_net.py2
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