From 54ffa26ce8e13ce0f77baae7b29bb793eb98f845 Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Thu, 26 Jun 2014 22:11:58 -0400 Subject: [PATCH] Use correct MAX_LEN constant in agent functional tests Closes-bug: #1334922 Change-Id: I62bd12da21e778f5cca97d6280c107575d912a81 --- neutron/tests/functional/agent/linux/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/functional/agent/linux/base.py b/neutron/tests/functional/agent/linux/base.py index e8c069750ac..bdd718c85e1 100644 --- a/neutron/tests/functional/agent/linux/base.py +++ b/neutron/tests/functional/agent/linux/base.py @@ -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: