add fallback incase we can't determine test name

This commit is contained in:
Jason Kölker 2011-11-13 13:54:46 -06:00
parent fb6e6ba9a6
commit 5433b4c12d
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ class Openstack(plugins.Plugin):
def _get_name(self, test):
address = test.address()
if address[2] is None:
return None, None
parts = address[2].split(".")
if len(parts) == 2:
return tuple(parts)