change from 'notrun' to ['0'] failed: undefined method `close!' for nil:NilClass (corrective) #72
-
I hope this is the correct place to post this question. I have a puppet module and I can't figure out why it is failing. Here is the relevant code that is failing. There is a bunch of other code that runs successfully before this, but I've excluded it for brevity. If I comment out the below lines, the rest of the module completes successfully:
The output I get is
I know the file is there, because if I change the file path to something that doesn't exist (to troubleshoot), I get a different error:
PDK passes with no errors:
If I run the command manually from the command line, it succeeds:
Puppet Version:
In short, I'm completely stumped because pdk validates the syntax as good syntax, but the puppet run still fails and the error message is entirely unhelpful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You might need to escape blackslash: |
Beta Was this translation helpful? Give feedback.
-
This was a bug in puppet. It was fixed in puppetlabs/puppet#9385 |
Beta Was this translation helpful? Give feedback.
This was a bug in puppet. It was fixed in puppetlabs/puppet#9385