File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1272,21 +1272,17 @@ def create_instructions(self):
1272
1272
instruction list because it sends the request to S3 and does not
1273
1273
yield anything.
1274
1274
"""
1275
- # TODO #rhm : optimize this
1276
1275
if self .needs_versiongenerator ():
1277
1276
self .instructions .append ('versioned_file_generator' )
1278
- else :
1279
- if self .needs_filegenerator ():
1280
- self .instructions .append ('file_generator' )
1281
- self .instructions .append ('file_info_builder' )
1282
-
1283
- # Add common processing instructions that apply to both generators
1284
- if self .needs_filegenerator () or self .needs_versiongenerator ():
1277
+ if self .parameters .get ('filters' ):
1278
+ self .instructions .append ('filters' )
1279
+ elif self .needs_filegenerator ():
1280
+ self .instructions .append ('file_generator' )
1285
1281
if self .parameters .get ('filters' ):
1286
1282
self .instructions .append ('filters' )
1287
1283
if self .cmd == 'sync' :
1288
1284
self .instructions .append ('comparator' )
1289
-
1285
+ self . instructions . append ( 'file_info_builder' )
1290
1286
self .instructions .append ('s3_handler' )
1291
1287
1292
1288
def needs_versiongenerator (self ):
You can’t perform that action at this time.
0 commit comments