Remove oslo.uuidutils
The only use of uuidutils in barbican is generate_uuid which will be dropped from oslo-incubator. This patch moves generate_uuid to barbican.common.utils and updates the context module from oslo. Following changes were updated in context: 13eb01c Adding domain to context and log 12bcdb7 Remove vim header bdabd51 Remove uuidutils imports in oslo modules 44e8222 Revert "Removes generate_uuid from uuidutils" 571a78a Removes generate_uuid from uuidutils 36859e5 Adding instance_uuid to context and log Change-Id: If27f8308f00ce92d8cde0bc1c669c8020137eba5 Partial-bug: #1253497
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from barbican.common import utils
|
||||
from barbican.openstack.common import policy
|
||||
from barbican.openstack.common import local
|
||||
from barbican.openstack.common import uuidutils
|
||||
|
||||
|
||||
class RequestContext(object):
|
||||
@@ -39,7 +39,7 @@ class RequestContext(object):
|
||||
# (mkbhanda) possibly domain could be owner
|
||||
# brings us to the key scope question
|
||||
self.owner_is_tenant = owner_is_tenant
|
||||
self.request_id = uuidutils.generate_uuid()
|
||||
self.request_id = utils.generate_uuid()
|
||||
self.service_catalog = service_catalog
|
||||
self.policy_enforcer = policy_enforcer or policy.Enforcer()
|
||||
self.is_admin = is_admin
|
||||
|
||||
Reference in New Issue
Block a user