Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… from the collector config

git-svn-id: https://socorro.googlecode.com/svn/trunk@2762 efcc4bdc-162a-0410-a8af-5b4b46c5376d
  • Loading branch information...
commit 53a4182bede0ab1aeacec90577cfb54e320a4679 1 parent 679a2aa
twobraids authored
Showing with 11 additions and 18 deletions.
  1. +10 −18 scripts/config/crashmoverconfig.py.dist
  2. +1 −0  scripts/newCrashMover.py
View
28 scripts/config/crashmoverconfig.py.dist
@@ -16,25 +16,17 @@ sourceStorageClass.doc = 'the fully qualified name of the source storage class'
sourceStorageClass.default = 'socorro.storage.crashstorage.CrashStorageSystemForLocalFS'
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
View
1  scripts/newCrashMover.py
@@ -8,6 +8,7 @@
import socorro.lib.ConfigurationManager as configurationManager
import socorro.storage.storageMover as smover
+import socorro.lib.util as sutil
try:
config = configurationManager.newConfiguration(configurationModule=cmconf, applicationName="New Crash Mover")
Please sign in to comment.
Something went wrong with that request. Please try again.