diff options
Diffstat (limited to 'resources/libraries/python/Tap.py')
-rw-r--r-- | resources/libraries/python/Tap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/python/Tap.py b/resources/libraries/python/Tap.py index ffcd00cdaf..6b8ae87c04 100644 --- a/resources/libraries/python/Tap.py +++ b/resources/libraries/python/Tap.py @@ -120,7 +120,7 @@ class Tap(object): :raises RuntimeError: Specified interface was not found. """ tap_if = InterfaceUtil.tap_dump(node, tap_name) - if len(tap_if) == 0: + if not tap_if: raise RuntimeError( 'Tap interface :{} does not exist'.format(tap_name)) |