Skip to content

Commit

Permalink
Removes quantum.tests.test_api_v2._uuid()
Browse files Browse the repository at this point in the history
Removed _uuid function
Defined an _uuid alias of openstack.common.uuidutils.generate_uuid

Fixes bug #1082255

Change-Id: I7d10ce3ade27eb4cdd533b5a77b9c405ad1dc174
  • Loading branch information
Zhongyue Luo committed Nov 26, 2012
1 parent cca84fd commit 5c64eb1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 2 additions & 4 deletions quantum/tests/unit/test_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@

LOG = logging.getLogger(__name__)


def _uuid():
return uuidutils.generate_uuid()

ROOTDIR = os.path.dirname(os.path.dirname(__file__))
ETCDIR = os.path.join(ROOTDIR, 'etc')
EXTDIR = os.path.join(ROOTDIR, 'unit/extensions')

_uuid = uuidutils.generate_uuid


def etcdir(*p):
return os.path.join(ETCDIR, *p)
Expand Down
6 changes: 4 additions & 2 deletions quantum/tests/unit/test_l3_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

import copy
import time
import unittest
Expand All @@ -24,9 +25,10 @@
from quantum.agent import l3_agent
from quantum.agent.linux import interface
from quantum.db import l3_db
from quantum.tests.unit import test_api_v2
from quantum.openstack.common import uuidutils


_uuid = test_api_v2._uuid
_uuid = uuidutils.generate_uuid


class TestBasicRouterOperations(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion quantum/tests/unit/test_l3_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

LOG = logging.getLogger(__name__)

_uuid = test_api_v2._uuid
_uuid = uuidutils.generate_uuid
_get_path = test_api_v2._get_path


Expand Down

0 comments on commit 5c64eb1

Please sign in to comment.