File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -453,10 +453,12 @@ def to_hierayaml
453
453
attr . unshift ( :ensure )
454
454
end
455
455
456
+ # rubocop:disable Lint/FormatParameterMismatch
456
457
attributes = attr . collect { |k |
457
458
v = parameters [ k ]
458
459
" %-#{ attr_max } s: %s\n " % [ k , Puppet ::Parameter . format_value_for_display ( v ) ]
459
460
} . join
461
+ # rubocop:enable Lint/FormatParameterMismatch
460
462
461
463
" %s:\n %s" % [ self . title , attributes ]
462
464
end
@@ -488,10 +490,12 @@ def to_manifest
488
490
attr . unshift ( :ensure )
489
491
end
490
492
493
+ # rubocop:disable Lint/FormatParameterMismatch
491
494
attributes = attr . collect { |k |
492
495
v = parameters [ k ]
493
496
" %-#{ attr_max } s => %s,\n " % [ k , Puppet ::Parameter . format_value_for_display ( v ) ]
494
497
} . join
498
+ # rubocop:enable Lint/FormatParameterMismatch
495
499
496
500
escaped = self . title . gsub ( /'/ , "\\ \\ '" )
497
501
"%s { '%s':\n %s}" % [ self . type . to_s . downcase , escaped , attributes ]
You can’t perform that action at this time.
0 commit comments