10

[PDK-998] Cannot use rubocop profile "off" with pdk update - Puppet Ti...

 3 years ago
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.
Uploaded image for project: 'Puppet Development Kit'

Cannot use rubocop profile "off" with pdk update

Details

  • Type: viewavatar?size=xsmall&avatarId=11503&avatarType=issuetype Bug
  • Status: Closed
  • Priority: medium.svg Normal
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: PDK 1.6.0
  • Component/s: None
  • 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 David Schmitt Reporter:

rnelson0@gmail.com Rob Nelson

Votes: 0 Vote for this issue Watchers: 2 Start watching this issue

Dates

Created: 2018/05/29 3:11 PM Updated: 2018/06/21 11:45 AM Resolved: 2018/05/30 11:34 AM

Zendesk Support


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK