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

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

Leave a comment

Leave a Reply to liza Cancel reply