From 4d7701be664a2a00a607daf637da7cf910225ec9 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 24 Aug 2016 01:13:38 +0100 Subject: [PATCH] Fix the config printer to sort the values. --- volatility/framework/interfaces/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/framework/interfaces/configuration.py b/volatility/framework/interfaces/configuration.py index 653b88d47..7b067d7d3 100644 --- a/volatility/framework/interfaces/configuration.py +++ b/volatility/framework/interfaces/configuration.py @@ -353,7 +353,7 @@ class HierarchicalDict(collections.Mapping): def __str__(self): """Turns the Hierarchical dict into a string representation""" - return json.dumps(dict([(key, self[key]) for key in self.generator()]), indent = 2) + return json.dumps(dict([(key, self[key]) for key in sorted(self.generator())]), indent = 2) class TranslationLayerRequirement(ConstructableRequirementInterface):