If you are going to add environment here you need to fix the __repr__ method to serialize the environment variable so it can print as it is sometimes a json object from chef