Remove config option snapshot_name_template
Blueprint centralize-config-options-ocata Change-Id: I2788e31122e66b955bb62489d0842f071452b9d1
This commit is contained in:
parent
d304690b7e
commit
a05c4a9240
@ -848,18 +848,6 @@ Related options:
|
||||
|
||||
* not to be confused with: ``multi_instance_display_name_template``
|
||||
"""),
|
||||
# TODO(markus_z): 2016-04-04: This is not used anymore. The class
|
||||
# "models.Snapshot" uses it but this class is not used anymore.
|
||||
# This class got introduced with commit 0ba0859 but all calls
|
||||
# to it got removed with commit 5d197cb. This cleanup must
|
||||
# have missed the class "models.Snapshot" and a new change
|
||||
# should remove it completely.
|
||||
cfg.StrOpt('snapshot_name_template',
|
||||
default='snapshot-%s',
|
||||
deprecated_for_removal=True,
|
||||
deprecated_since='14.0.0',
|
||||
deprecated_reason='This is not used anymore.',
|
||||
help='Template string to be used to generate snapshot names')
|
||||
]
|
||||
|
||||
|
||||
|
@ -546,10 +546,6 @@ class Snapshot(BASE, NovaBase, models.SoftDeleteMixin):
|
||||
id = Column(String(36), primary_key=True, nullable=False)
|
||||
deleted = Column(String(36), default="")
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return CONF.snapshot_name_template % self.id
|
||||
|
||||
@property
|
||||
def volume_name(self):
|
||||
return CONF.volume_name_template % self.volume_id
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The deprecated compute config option ``snapshot_name_template``
|
||||
has been removed. It is not used anywhere and has no effect
|
||||
on any code, so there is no impact.
|
Loading…
x
Reference in New Issue
Block a user