Skip to content
Browse files

switched the crash mover config to get its config parameters directly…

… from the collector config

git-svn-id: efcc4bdc-162a-0410-a8af-5b4b46c5376d
  • Loading branch information...
1 parent 679a2aa commit 53a4182bede0ab1aeacec90577cfb54e320a4679 twobraids committed
Showing with 11 additions and 18 deletions.
  1. +10 −18 scripts/config/
  2. +1 −0 scripts/
28 scripts/config/
@@ -16,25 +16,17 @@ sourceStorageClass.doc = 'the fully qualified name of the source storage class'
sourceStorageClass.default = ''
sourceStorageClass.fromStringConverter = cm.classConverter
-localFS = cm.Option()
-localFS.doc = 'a path to a local file system'
-localFS.default = './'
+from config.collectorconfig import localFS
+from config.collectorconfig import localFSDumpDirCount
+from config.collectorconfig import localFSDumpGID
+from config.collectorconfig import localFSDumpPermissions
+from config.collectorconfig import localFSDirPermissions
+from config.collectorconfig import fallbackFS
+from config.collectorconfig import fallbackDumpDirCount
+from config.collectorconfig import fallbackDumpGID
+from config.collectorconfig import fallbackDumpPermissions
+from config.collectorconfig import fallbackDirPermissions
-localFSDumpDirCount = cm.Option()
-localFSDumpDirCount.doc = 'the number of dumps to be stored in a single directory in the local file system'
-localFSDumpDirCount.default = 1024
-localFSDumpGID = cm.Option()
-localFSDumpGID.doc="the group ID for saved crashes in local file system (optional)"
-localFSDumpGID.default = None
-localFSDumpPermissions = cm.Option()
-localFSDumpPermissions.doc = "a number used for permissions crash dump files in the local file system"
-localFSDumpPermissions.default = stat.S_IRGRP | stat.S_IWGRP | stat.S_IRUSR | stat.S_IWUSR
-localFSDirPermissions = cm.Option()
-localFSDirPermissions.doc = "a number used for permissions for directories in the local file system"
-localFSDirPermissions = stat.S_IRGRP | stat.S_IXGRP | stat.S_IWGRP | stat.S_IRUSR | stat.S_IXUSR | stat.S_IWUSR
from config.commonconfig import jsonFileSuffix
from config.commonconfig import dumpFileSuffix
1 scripts/
@@ -8,6 +8,7 @@
import socorro.lib.ConfigurationManager as configurationManager
import as smover
+import socorro.lib.util as sutil
config = configurationManager.newConfiguration(configurationModule=cmconf, applicationName="New Crash Mover")

0 comments on commit 53a4182

Please sign in to comment.
Something went wrong with that request. Please try again.