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

Remove redundant white space from python templates #943

Merged
merged 2 commits into from
May 27, 2020

Conversation

traylenator
Copy link
Contributor

@traylenator traylenator commented May 26, 2020

Pull Request (PR) description

Simplified the epp template contained:

    <%# a comment #%>
  • In puppet 5 this renders as a new line. The prefix of spaces is eaten and a new line is created.
  • In puppet 6 this renders as a string of spaces and new line.

The puppet 6 behaviour is better so I expect a bug was fixed sometime.

In reality there should be no spaces in here so change to

    <%#- a comment -%>

which renders as nothing and gives us zero catalogue change between 5 and 6 :-)

Extra commit also to remove a redundant blank line from python-config.conf

Simplifed the template contained:

```
    <%# a comment #%>
```

* In puppet 5 this renders as a new line. The prefix of spaces is eaten and a new line is created.
* In puppet 6 this renders as a string of spaces and new line.

The puppet 6 behaviour is better so I expect a bug was fixed sometime.

In reality there should be no spaces in here so change to

```
    <%#- a comment -%>
```

which renders as nothing.
@traylenator traylenator added the bug Something isn't working label May 26, 2020
@bastelfreak
Copy link
Member

thanks for the fix!

@bastelfreak bastelfreak merged commit d73d5f4 into voxpupuli:master May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants