Fix the pep8 error on Noble

pep8 job failing on Noble with below error.
Bumping the hacking version to 7.0.0 to fix it

     - AttributeError: 'EntryPoints' object has no attribute 'get'

Closes-Bug: #2088356

Change-Id: Ib168ad6842dfcf5cac8a85db973e339d2225b444
This commit is contained in:
Ghanshyam Mann 2024-12-11 19:53:45 -08:00
parent 7e30ba3d1c
commit 3120454508
4 changed files with 14 additions and 13 deletions

View File

@ -33,7 +33,7 @@ class Volume(base.Resource):
return self.manager.update(self, **kwargs) return self.manager.update(self, **kwargs)
def attach(self, instance_uuid, mountpoint, mode='rw', host_name=None): def attach(self, instance_uuid, mountpoint, mode='rw', host_name=None):
"""Inform Cinder that the given volume is attached to the given instance. """Inform Cinder if the given volume is attached to the given instance.
Calling this method will not actually ask Cinder to attach Calling this method will not actually ask Cinder to attach
a volume, but to mark it on the DB as attached. If the volume a volume, but to mark it on the DB as attached. If the volume
@ -54,9 +54,10 @@ class Volume(base.Resource):
host_name) host_name)
def detach(self): def detach(self):
"""Inform Cinder that the given volume is detached from the given instance. """Inform Cinder that the given volume is detached.
Calling this method will not actually ask Cinder to detach This inform Cinder that the given volume is detached from the given
instance. Calling this method will not actually ask Cinder to detach
a volume, but to mark it on the DB as detached. If the volume a volume, but to mark it on the DB as detached. If the volume
is not actually detached from the given instance, inconsistent is not actually detached from the given instance, inconsistent
data will result. data will result.

View File

@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
# Hacking already pins down pep8, pyflakes and flake8 # Hacking already pins down pep8, pyflakes and flake8
hacking>=4.0.0,<4.1.0 # Apache-2.0 hacking>=7.0.0,<7.1.0 # Apache-2.0
flake8-import-order # LGPLv3 flake8-import-order # LGPLv3
docutils>=0.16 docutils>=0.16
coverage>=5.5 # Apache-2.0 coverage>=5.5 # Apache-2.0