]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Use correct MAX_LEN constant in agent functional tests
authorHenry Gessau <gessau@cisco.com>
Fri, 27 Jun 2014 02:11:58 +0000 (22:11 -0400)
committerHenry Gessau <gessau@cisco.com>
Fri, 27 Jun 2014 02:17:09 +0000 (22:17 -0400)
Closes-bug: #1334922

Change-Id: I62bd12da21e778f5cca97d6280c107575d912a81

neutron/tests/functional/agent/linux/base.py

index e8c069750ac78b0c9c415cfe6f541734f0e85e85..bdd718c85e18090b35969c6bfac858310148df10 100644 (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: