Plugins: Fix up kmsg code issues

This commit is contained in:
Mike Auty
2024-01-17 20:34:39 +00:00
parent 7c8f4ca4ac
commit 269058021d
2 changed files with 5 additions and 6 deletions
@@ -15,7 +15,6 @@ from volatility3.framework import (
renderers,
)
from volatility3.framework.configuration import requirements
from volatility3.framework.interfaces import plugins
from volatility3.framework.objects import utility
vollog = logging.getLogger(__name__)
+5 -5
View File
@@ -26,11 +26,11 @@ class ProducerMetadata(interfaces.symbols.MetadataInterface):
return None
if all([x in "0123456789." for x in version]):
return tuple([int(x) for x in version.split(".")])
else:
vollog.log(
constants.LOGLEVEL_VVVV,
f"Metadata version contains unexpected characters: '{version}'",
)
vollog.log(
constants.LOGLEVEL_VVVV,
f"Metadata version contains unexpected characters: '{version}'",
)
return None
@property
def datetime(self) -> Optional[datetime.datetime]: