Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit d9442b9

Browse files
Merging in Master 20UL16 vs 20UL16APV was confusing git
2 parents 935a2d6 + 294f147 commit d9442b9

3 files changed

Lines changed: 520 additions & 2 deletions

File tree

Unified/injector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
def injector(url, options, specific):
1515
mlock = moduleLock()
16-
if mlock(): return
16+
if mlock() and not options.manual: return
1717

1818
use_mcm = True
1919
up = componentInfo(soft=['mcm','wtc','jira'] )
@@ -229,6 +229,7 @@ def injector(url, options, specific):
229229
parser.add_option('--user_relval',help="The user that can inject workflows for relvals", default=None)
230230
parser.add_option('--user_storeresults',help="The user that can inject workflows for store results", default=None)
231231
parser.add_option('--no_convert',help="Prevent the conversion to stepchain", default=False)
232+
parser.add_option('-m','--manual', help='Manual inject, bypassing lock check',action='store_true',dest='manual',default=False)
232233
(options,args) = parser.parse_args()
233234

234235
spec = None

campaignAPI.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def parseMongoCampaigns(campaigns, verbose=False):
111111
'SecondaryLocation': 'SecondaryLocation',
112112
'secondaries': 'Secondaries',
113113
'partial_copy': 'PartialCopy',
114+
'toDDM': 'TiersToDM',
114115
'maxcopies': 'MaxCopies'}
115116
# campaign schema dict
116117
confRec = {
@@ -122,6 +123,7 @@ def parseMongoCampaigns(campaigns, verbose=False):
122123
'SecondaryLocation': [],
123124
'Secondaries': {},
124125
'PartialCopy': 1,
126+
'TiersToDM': [],
125127
'MaxCopies': 1}
126128

127129
if not isinstance(campaigns, list):

0 commit comments

Comments
 (0)