No instances for regex `’, try running `kitchen list’ in Chef Test Kitchen

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.

Join the Conversation

4 Comments

    1. Hello Liza,

      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.

  1. 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.

  2. 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

Your email address will not be published. Required fields are marked *