image: Deprecate rewriting of is_public property

We should not be in the business of managing things like this.

Change-Id: I6080d21bf506afaf7ef7d4e262e9ced9f227aeff
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-12-05 16:19:45 +00:00
parent 3d45cecb3a
commit d07cfac626

View File

@@ -587,6 +587,12 @@ class Proxy(proxy.Proxy):
# is_public, we know what they mean. If they give us visibility, they
# know that they mean.
if 'is_public' in kwargs['properties']:
warnings.warn(
"The 'is_public' property is not supported by Glance v2: use "
"'visibility=public/private' instead",
os_warnings.RemovedInSDK60Warning,
)
is_public = kwargs['properties'].pop('is_public')
if is_public:
kwargs['visibility'] = 'public'