kwoodson / ansible-role-yedit

Ansible Role for Yaml editing
165 stars 62 forks source link

Allow the key value to be a empty string #58

Closed ctornatta closed 4 years ago

ctornatta commented 5 years ago

The documentation states that you can pass a empty string '' for the key value to append to the root of the yaml file.

  key:
    description:
    - The path to the value you wish to modify. Emtpy string means the top of
    - the document

This change allows empty string to be passed in.

kwoodson commented 5 years ago

@ctornatta, please update the test cases so that we cover this test case. Thanks for your PR