Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial indentation problem #5

Open
carroarmato0 opened this issue Jun 18, 2013 · 2 comments
Open

Initial indentation problem #5

carroarmato0 opened this issue Jun 18, 2013 · 2 comments

Comments

@carroarmato0
Copy link

I'm using your module which is God sent for getting close to the same functionality as Augeas in Puppet for YAML files.
However I have a problem with tools that are used in Symfony to parse the generated yml file.

Specifically, your module adds an initial indentation from the root of the tree.

I think this might be an error. Is there a way I can prevent that?

@reidmv
Copy link
Owner

reidmv commented Aug 30, 2013

The implementation of the provider is relatively primitive, and just uses Ruby's .to_yaml method to create the Yaml file. It looks like in Puppet, a library called "zaml" is actually used for this and I believe the two-space indent for the first "value" in the document (which is a hash) is a zaml induced behavior. I'm actually not immediately sure how to fix this. I'll ask around but while aesthetically displeasing it does seem to be valid yaml.

I'd like to fix this, but it might imply a non-trivial reimplementation if zaml can't be coerced into dropping the two-space indent.

@lavoiesl
Copy link

lavoiesl commented Dec 9, 2014

This was a deal breaker for me, I had to remove your module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants