[PDK-998] Cannot use rubocop profile "off" with pdk update - Puppet Ti...
source link: https://tickets.puppetlabs.com/browse/PDK-998
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Cannot use rubocop profile "off" with pdk update
Details
-
Type: Bug
-
Status: Closed
-
Priority: Normal
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: PDK 1.6.0
-
Component/s: None
-
Labels:
-
Environment:
Using PDK 1.5.0.0 from RPM on CentOS 7, pointed at the template-ref "heads/master-0-g7b5f6d2
-
Template:
-
Method Found:
Needs Assessment
Description
It looks like I should be able to set a `selected_profile` of `off` in .sync.yml to disable rubocop, but that generates an error when using pdk update as it tries to loop through some empty hash for the profile.
[rnelson0@build03 domain_join:pdk±]$ tail -2 .sync.yml
.rubocop.yml:
selected_profile: off
[rnelson0@build03 domain_join:pdk±]$ pdk update
pdk (FATAL): Failed to render template '.rubocop.yml.erb'
NoMethodError: undefined method `keys' for []:Array
People
Assignee:
David Schmitt Reporter:
Rob Nelson
Dates
Zendesk Support
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK