Use correct MAX_LEN constant in agent functional tests

Closes-bug: #1334922

Change-Id: I62bd12da21e778f5cca97d6280c107575d912a81
This commit is contained in:
Henry Gessau 2014-06-26 22:11:58 -04:00
parent 997f261cc1
commit 54ffa26ce8
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class BaseLinuxTestCase(base.BaseTestCase):
:param *args *kwargs: These will be passed to the create function.
"""
while True:
name = self.get_rand_name(n_const.DEV_NAME_MAX_LEN, name_prefix)
name = self.get_rand_name(n_const.DEVICE_NAME_MAX_LEN, name_prefix)
try:
return creation_func(name, *args, **kwargs)
except RuntimeError: