add a deprecated warning
static_physical datasource is deprecated this warning wil be issued: DeprecationWarning: The 'vitrage.datasources.static_phisical' module usage is deprecated, please use datasources.static instead Change-Id: I59784f7168b09d4898e629309f67fbf05c42e2d2
This commit is contained in:
parent
c530025e24
commit
739381dbb5
@ -43,4 +43,5 @@ requests>=2.14.2 # Apache-2.0
|
||||
WebOb>=1.7.1 # MIT
|
||||
eventlet!=0.18.3,!=0.20.1,<0.21.0,>=0.18.2 # MIT
|
||||
six>=1.10.0 # MIT
|
||||
debtcollector>=1.2.0 # Apache-2.0
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
import copy
|
||||
|
||||
from debtcollector import removals
|
||||
from oslo_log import log
|
||||
|
||||
from vitrage.common.constants import DatasourceProperties as DSProps
|
||||
@ -38,6 +39,7 @@ class StaticPhysicalDriver(DriverBase):
|
||||
ENTITIES_SECTION = 'entities'
|
||||
|
||||
def __init__(self, conf):
|
||||
removals.removed_module(__name__, "datasources.static")
|
||||
super(StaticPhysicalDriver, self).__init__()
|
||||
self.cfg = conf
|
||||
self.cache = {}
|
||||
|
@ -12,6 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from debtcollector import removals
|
||||
from vitrage.common.constants import DatasourceProperties as DSProps
|
||||
from vitrage.common.constants import EntityCategory
|
||||
from vitrage.common.constants import GraphAction
|
||||
@ -37,6 +38,7 @@ class StaticPhysicalTransformer(ResourceTransformerBase):
|
||||
}
|
||||
|
||||
def __init__(self, transformers, conf):
|
||||
removals.removed_module(__name__, "datasources.static")
|
||||
super(StaticPhysicalTransformer, self).__init__(transformers, conf)
|
||||
self._register_relations_direction()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user