Change I084336ba41147f824b92dc07235e5f19b7ac4a9c introduced mypy
syntax which breaks Python releases before 3.10. Unfortunately, for
2024.1 we commit to supporting Python back to 3.8.
Specifically, you receive this error message if you run pep8:
pep8 mypy.....................................................................Failed
pep8 - hook id: mypy
pep8 - exit code: 1
pep8
pep8 openstack/object_store/v1/_proxy.py: note: In member "generate_temp_url" of class "Proxy":
pep8 openstack/object_store/v1/_proxy.py:1049:21: error: X | Y syntax for unions requires Python 3.10 [syntax]
pep8 Found 1 error in 1 file (checked 410 source files)
I asked some buddies, and we're fairly sure that this line would
crash the runtime on Python 3.8, because its a syntax error.
So instead, let's use typing syntax compatible with other pythons.
Change-Id: I0a5f57346c7ff469ffe1b93051e470141117ada9
Some of these are admin-only. We don't want to force setting them all at
once.
Change-Id: I3b1694ee5e4dfd96315cc48b44b3d28c01aa3bfa
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit:
- makes "both" the default target for clear_cache, as described by the
documentation;
- makes sure an InvalidRequest exception is raised if another target is
passed.
Change-Id: I61fccad78fc1b280395e0c590caaa2ee73586d93
Missed to retrieve the id of the metadef object.
Added the statement to fetch the id of the metadef_object to be
updated
Change-Id: I99f334fcd3a5a3886cdf734747a018e8bca61099
This change adds support for showing the availability
zone requested during instance create server show and
server list --long output.
Also bump the _max_microversion to 2.96 to use the newly
added microversion.
Depends-On: https://review.opendev.org/c/openstack/nova/+/904568
Change-Id: Iafedc1b7eba682dedaf0bcb0a5af79e85501679a
Implement resource locks and access rules restrictions feature
in the openstacksdk.
Depends-On: Ib9f65a4523222f1224d51534c5061f90501b59d3
Change-Id: I45f9b06b1b41756d34f39604c82e28fd4eb102de
the _list method goes straight through to formatting base_path with attrs,
and for server migrations the attr in the base path is server_uuid,
not server_id.
This patch fixes the base_path of the ServerMigration resource
to use server_id stanza.
Change-Id: I44335a22846f1a11ba60e8bb758b10c39e728897
Story: 2010633
Task: 47591
Build upon I897325032ee7b0f559906e82be7f3a7695768c52 to give an
additional example using a service user.
Change-Id: Iac2b85ac19d100c68a9039583b55437aa8b4494e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>