stackhpc / ansible-collection-cephadm

Apache License 2.0
16 stars 11 forks source link

Fix spec indentation in cluster.yml #133

Closed priteau closed 8 months ago

priteau commented 11 months ago

The spec dictionary was badly indented when templating cluster.yml, because to_nice_yaml does not take into account the initial indentation required. The result would like like this:

spec:
  key1: value1
key2: value2
key3: value3

Fix by passing the whole spec key and value into to_nice_yaml. Also set indent parameter to 2 spaces to match the rest of the file.