Merge "Update log's level when backup a volume backend instance"
This commit is contained in:
commit
9103831f11
|
@ -2186,10 +2186,8 @@ class API(base.Base):
|
||||||
props_copy = dict(extra_properties, backup_type=backup_type)
|
props_copy = dict(extra_properties, backup_type=backup_type)
|
||||||
|
|
||||||
if self.is_volume_backed_instance(context, instance):
|
if self.is_volume_backed_instance(context, instance):
|
||||||
# TODO(flwang): The log level will be changed to INFO after
|
LOG.info(_LI("It's not supported to backup volume backed "
|
||||||
# string freeze (Liberty).
|
"instance."), context=context, instance=instance)
|
||||||
LOG.debug("It's not supported to backup volume backed instance.",
|
|
||||||
context=context, instance=instance)
|
|
||||||
raise exception.InvalidRequest()
|
raise exception.InvalidRequest()
|
||||||
else:
|
else:
|
||||||
image_meta = self._create_image(context, instance,
|
image_meta = self._create_image(context, instance,
|
||||||
|
|
Loading…
Reference in New Issue