From 93a8258e6668644c7eb93ac72f23187d42f27d92 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 8 Oct 2021 18:23:07 +0100 Subject: [PATCH] resource: Remove deprecated 'allow_get' attribute Change-Id: I7553fa300a4527fd29f7a945a0dc0c269a7e4730 Signed-off-by: Stephen Finucane --- openstack/resource.py | 4 ---- .../drop-Resource-allow_get-attribute-fec75b551fb79465.yaml | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 releasenotes/notes/drop-Resource-allow_get-attribute-fec75b551fb79465.yaml diff --git a/openstack/resource.py b/openstack/resource.py index 2305080d1..d8dabff7a 100644 --- a/openstack/resource.py +++ b/openstack/resource.py @@ -454,10 +454,6 @@ class Resource(dict): #: Allow patch operation for this resource. allow_patch = False - # TODO(mordred) Unused - here for transition with OSC. Remove once - # OSC no longer checks for allow_get - allow_get = True - #: Commits happen without header or body being dirty. allow_empty_commit = False diff --git a/releasenotes/notes/drop-Resource-allow_get-attribute-fec75b551fb79465.yaml b/releasenotes/notes/drop-Resource-allow_get-attribute-fec75b551fb79465.yaml new file mode 100644 index 000000000..422029a73 --- /dev/null +++ b/releasenotes/notes/drop-Resource-allow_get-attribute-fec75b551fb79465.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + The ``allow_get`` attribute of ``openstack.resource.Resource`` has been + removed. Use ``allow_fetch`` or ``allow_list`` instead.