From 9872f1e6901a1699e9bdc5608eff112f91ea93d1 Mon Sep 17 00:00:00 2001 From: XinXiaohui Date: Tue, 1 Mar 2016 10:20:41 +0800 Subject: [PATCH] Remove an useless and wrong call In cinder/objects/service.py, the method obj_make_compatible() of Class Service is useless and it called convert_version_to_tuple() incorrectly from utils from Cinder instead of from versionutils from oslo_utils, just remove it. Change-Id: I383ba2c793add02b83591cc44e4e4584d09c7ed5 --- cinder/objects/service.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cinder/objects/service.py b/cinder/objects/service.py index b8f833e62..3047f5b1b 100644 --- a/cinder/objects/service.py +++ b/cinder/objects/service.py @@ -22,7 +22,6 @@ from cinder.i18n import _ from cinder import objects from cinder.objects import base from cinder.objects import fields as c_fields -from cinder import utils LOG = logging.getLogger(__name__) @@ -58,10 +57,6 @@ class Service(base.CinderPersistentObject, base.CinderObject, 'active_backend_id': fields.StringField(nullable=True), } - def obj_make_compatible(self, primitive, target_version): - """Make an object representation compatible with a target version.""" - target_version = utils.convert_version_to_tuple(target_version) - @staticmethod def _from_db_object(context, service, db_service): for name, field in service.fields.items(): -- 2.45.2