changeset 13:1e90d869f787

only use the configuration values we need
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 04 Dec 2012 16:25:31 -0800
parents c0e50e040275
children 06b8783eae81
files mozillatry.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mozillatry.py	Tue Dec 04 15:43:58 2012 -0800
+++ b/mozillatry.py	Tue Dec 04 16:25:31 2012 -0800
@@ -112,6 +112,14 @@
                 configuration_files = [default_config]
         return configuration_files
 
+    def load_configuration_file(self, filename):
+        config = configuration.Configuration.load_configuration_file(self, filename)
+
+        # ignore options that we don't care about
+        config = dict([(key, value) for key, value in config.items()
+                       if key in self.option_dict])
+        return config
+
 def main(args=sys.argv[1:]):
 
     # parse command line arguments