Adding upstream version 2.2.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
757b718eff
commit
02717bbc1e
3 changed files with 13 additions and 2 deletions
6
NEWS.md
6
NEWS.md
|
@ -1,5 +1,11 @@
|
||||||
# STorage Appliance Services (STAS)
|
# STorage Appliance Services (STAS)
|
||||||
|
|
||||||
|
## Changes with release 2.2.2
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
* Fix migration of old "last known config" to new format. Old TID objects did not contain a `_cfg` member. Therefore, one needs to check for its existence (through introspection) before blindly trying to access it.
|
||||||
|
|
||||||
## Changes with release 2.2.1
|
## Changes with release 2.2.1
|
||||||
|
|
||||||
Added a few more unit and coverage tests. Fixed the following bugs.
|
Added a few more unit and coverage tests. Fixed the following bugs.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
project(
|
project(
|
||||||
'nvme-stas',
|
'nvme-stas',
|
||||||
meson_version: '>= 0.53.0',
|
meson_version: '>= 0.53.0',
|
||||||
version: '2.2.1',
|
version: '2.2.2',
|
||||||
license: 'Apache-2.0',
|
license: 'Apache-2.0',
|
||||||
default_options: [
|
default_options: [
|
||||||
'buildtype=release',
|
'buildtype=release',
|
||||||
|
|
|
@ -106,7 +106,12 @@ class TID: # pylint: disable=too-many-instance-attributes
|
||||||
'host-traddr': self.host_traddr,
|
'host-traddr': self.host_traddr,
|
||||||
'host-iface': self.host_iface,
|
'host-iface': self.host_iface,
|
||||||
}
|
}
|
||||||
data.update(self._cfg)
|
|
||||||
|
# When migrating an old last known config, the "_cfg" member may
|
||||||
|
# not exist. Therefor retrive it with getattr() to avoid a crash.
|
||||||
|
cfg = getattr(self, '_cfg', None)
|
||||||
|
if cfg:
|
||||||
|
data.update(cfg)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue