From d07cfac62667ed7066abc42d6b0d707ce581e4f7 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 5 Dec 2025 16:19:45 +0000 Subject: [PATCH] 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 --- openstack/image/v2/_proxy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openstack/image/v2/_proxy.py b/openstack/image/v2/_proxy.py index 9a214b015..3a920204a 100644 --- a/openstack/image/v2/_proxy.py +++ b/openstack/image/v2/_proxy.py @@ -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'