File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,11 @@ def line(
368
368
369
369
host .create_fact (
370
370
FindInFile ,
371
- kwargs = {'path' : path , 'pattern' : match_line },
371
+ kwargs = {
372
+ 'path' : path ,
373
+ 'pattern' : match_line ,
374
+ 'interpolate_variables' : interpolate_variables ,
375
+ },
372
376
data = [replace or line ],
373
377
)
374
378
@@ -383,7 +387,11 @@ def line(
383
387
384
388
host .delete_fact (
385
389
FindInFile ,
386
- kwargs = {'path' : path , 'pattern' : match_line },
390
+ kwargs = {
391
+ 'path' : path ,
392
+ 'pattern' : match_line ,
393
+ 'interpolate_variables' : interpolate_variables ,
394
+ },
387
395
)
388
396
389
397
# Line(s) exists and we have want to ensure they're correct
@@ -449,7 +457,11 @@ def replace(
449
457
)
450
458
host .create_fact (
451
459
FindInFile ,
452
- kwargs = {'path' : path , 'pattern' : match },
460
+ kwargs = {
461
+ 'path' : path ,
462
+ 'pattern' : match ,
463
+ 'interpolate_variables' : interpolate_variables ,
464
+ },
453
465
data = [],
454
466
)
455
467
else :
You can’t perform that action at this time.
0 commit comments