Stopping using norm_ns
The usage of 'norm_ns' via identifier is deprecated for removal. And there is no usage of norm_ns in other projects [1]. It's safe to remove it now. [1] http://codesearch.openstack.org/?q=norm_ns&i=nope&files=&repos= Change-Id: I9dc7683cb2cfa9096c16b888518581ed57c6dd9d
This commit is contained in:
parent
540c5ca560
commit
37bcb98f3e
|
@ -16,7 +16,6 @@ import re
|
|||
import uuid
|
||||
import warnings
|
||||
|
||||
from debtcollector import removals
|
||||
from oslo_config import cfg
|
||||
import six
|
||||
|
||||
|
@ -44,13 +43,6 @@ def generate_uuid():
|
|||
return str(uuid.uuid4())
|
||||
|
||||
|
||||
@removals.remove
|
||||
def norm_ns(str_id):
|
||||
"""Apply a namespace to the identifier."""
|
||||
prefix = CONF.audit.namespace + ':' if CONF.audit.namespace else ''
|
||||
return prefix + str_id
|
||||
|
||||
|
||||
def _check_valid_uuid(value):
|
||||
"""Checks a value for one or multiple valid uuids joined together."""
|
||||
|
||||
|
|
Loading…
Reference in New Issue