summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
Diffstat (limited to 'nova')
-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 d819a111a..626b65c9e 100755
--- a/nova/network/linux_net.py
+++ b/nova/network/linux_net.py
@@ -818,7 +818,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