diff options
author | Christian Trautman <ctrautma@redhat.com> | 2016-08-06 21:34:22 -0400 |
---|---|---|
committer | Christian Trautman <ctrautma@redhat.com> | 2016-08-06 21:34:22 -0400 |
commit | 9d527a1ec357e159c08a2639ff4c63fcf97e9ba7 (patch) | |
tree | f8f67114aad091413355e1925bbb19add34f376d /tools | |
parent | 896f0fe61346916a560c01c0eae638894d653d7e (diff) |
namespace_bug: Initial creation of namespace fails
Initial creation of namespace fails because var/run/netns does not
exist.
JIRA: VSPERF-366
Change-Id: I02e5aef52e1675f303405b69c7461ca6482903af
Signed-off-by: Christian Trautman <ctrautma@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/namespace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/namespace.py b/tools/namespace.py index e6bcd819..9131398f 100644 --- a/tools/namespace.py +++ b/tools/namespace.py @@ -108,8 +108,8 @@ def get_system_namespace_list(): Return tuple of strings for namespaces on the system :return: tuple of namespaces as string """ - return tuple(os.listdir('/var/run/netns')) - + return tuple(os.listdir('/var/run/netns')) if os.path.exists( + '/var/run/netns') else tuple() def get_vsperf_namespace_list(): """ |