[PDK-1276] PDK should ignore .vagrant folder Created: 2019/02/10  Updated: 2019/02/28  Resolved: 2019/02/11

Status: Resolved
Project: Puppet Development Kit
Component/s: None
Affects Version/s: PDK 1.8.0
Fix Version/s: PDK 1.9.1

Type: Improvement Priority: Normal
Reporter: Jocelyn Thode Assignee: Tim Sharpe
Resolution: Fixed Votes: 0
Labels: resolved-issue-added
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Release Notes: Bug Fix
Release Notes Summary: `pdk validate yaml` will now filter out anything that is not a file from the list of targets before validating to avoid trying to validate - for example - a folder called `default.yml`.
QA Risk Assessment: Needs Assessment

 Description   

When running beaker on a module and not destroying the VM after the tests (common pattern during development), a folder named exactly like the nodeset file is created in .vagrant (e.g.: .vagrant/beaker_vagrant_files/default.yml) which triggers

sysopen - .vagrant/beaker_vagrant_files/default.yml (Errno::EISDIR)



 Comments   
Comment by Tim Sharpe [ 2019/02/11 ]

Jocelyn Thode Which PDK command is generating that EISDIR error?

Comment by Jocelyn Thode [ 2019/02/11 ]

Tim Sharpe Hey sorry for not giving enough information:

I get the error while running either:

  • pdk validate

  • pdk validate -a

  • pdk validate a --parallel

Specifically it is the yaml validator that outputs this error so pdk validate yaml should give the same error

Generated at Wed Nov 20 21:30:13 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.