fix version in text
This commit is contained in:
parent
3f2d3df817
commit
d63a256da5
|
@ -65,7 +65,7 @@ class InventoryView(LoginMixin, SnapshotMixin):
|
|||
snapshot_uuid=snapshot.uuid,
|
||||
severity=Severity.Info,
|
||||
sid=snapshot.sid,
|
||||
version=snapshot.version,
|
||||
version=str(snapshot.version),
|
||||
snapshot=snapshot,
|
||||
)
|
||||
snap_log.save()
|
||||
|
@ -97,7 +97,7 @@ class InventoryView(LoginMixin, SnapshotMixin):
|
|||
snapshot_uuid=uuid,
|
||||
severity=Severity.Error,
|
||||
sid=sid,
|
||||
version=version,
|
||||
version=str(version),
|
||||
)
|
||||
error.save(commit=True)
|
||||
# raise err
|
||||
|
|
|
@ -320,7 +320,7 @@ class ParseSnapshotLsHw:
|
|||
self.default = default
|
||||
self.uuid = snapshot.get("uuid")
|
||||
self.sid = snapshot.get("sid")
|
||||
self.version = snapshot.get("version")
|
||||
self.version = str(snapshot.get("version"))
|
||||
self.dmidecode_raw = snapshot["data"]["dmidecode"]
|
||||
self.smart = snapshot["data"]["smart"]
|
||||
self.hwinfo_raw = snapshot["data"]["hwinfo"]
|
||||
|
|
Reference in a new issue