When I tried to execute the “kitchen list” command in Chef Test Kitchen the following error came up:
No instances for regex `’, try running `kitchen list’
I could not find the reason for the error, so I opened the .kitchen.yml file in the Atom editor, added a space to one of the comments, and saved the file. The error went away.
I need to know, what was the “insignificant change” that you made.
Thanks for the question, it gave me the reason to make the post more clear too:
Because I could not find any reason for the error in the kitchen.yml file, I have opened the file in Atom, added a space to one of the comments, and saved the file. The error went away.
This error occurs when there is a spacing or indentation issue in the .kitchen.yml file. There are probably linters that exist for this specific reason, and especially useful when you have very large yaml files, which is rare, but still existent.
it s not about indentation. i used to have the error. double check all the words in the .kitchen.yml
i typed config from a book and smth made wrong, then i copy-paste config from the book and all started just fine!
Leave a comment