Fix up the descriptions for non-simple requirements.

This commit is contained in:
Mike Auty
2019-01-03 00:39:53 +00:00
parent 19f908b075
commit 040da46deb
45 changed files with 91 additions and 85 deletions
+8 -3
View File
@@ -175,9 +175,14 @@ class RegistryHive(interfaces.layers.TranslationLayerInterface):
@classmethod
def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:
return [
IntRequirement(name = 'hive_offset', description = '', default = 0, optional = False),
requirements.SymbolRequirement(name = "nt_symbols", description = "Windows OS"),
TranslationLayerRequirement(name = 'base_layer', optional = False)
IntRequirement(
name = 'hive_offset',
description = 'Offset within the base layer at which the hive lives',
default = 0,
optional = False),
requirements.SymbolRequirement(name = "nt_symbols", description = "Windows kernel symbols"),
TranslationLayerRequirement(
name = 'base_layer', description = 'Layer in which the registry hive lives', optional = False)
]
def _translate(self, offset: int) -> int: