-
Notifications
You must be signed in to change notification settings - Fork 57
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
[BUG] allow and deny items parsed on single line #50
Comments
Not sure why markdown code block is ignoring new lines, tried several methods... |
@Mandorath Have a look at the edit I made. You need to gate the code block with three backticks and you can add an optional code language for colour highlighting. So that was:
|
@myii Thanks! I'm still reading myself up on all of this :). |
Hello, any progress on this item? It would be nice to have an update on this formula with the bug fixed. |
@Mandorath @geertwitter Fix proposed in #52. Feel free to test it out and comment there. Tricked by @daks (in Slack) into working on this!! |
Thanks for the fast response! |
@Mandorath @geertwitter Fix has been merged, let us know if there are any problems, either here or in #52. |
## [0.11.2](v0.11.1...v0.11.2) (2020-09-24) ### Bug Fixes * **dhcpd.conf:** fix bug 50 ([e015cda](e015cda)), closes [#50](#50) ### Continuous Integration * **gemfile.lock:** add to repo with updated `Gemfile` [skip ci] ([e3d3bb3](e3d3bb3)) * **kitchen:** use `saltimages` Docker Hub where available [skip ci] ([6e5d4fe](6e5d4fe)) * **kitchen+travis:** add new platforms [skip ci] ([2e3f86e](2e3f86e)) * **kitchen+travis:** adjust matrix to add `3000.2` & remove `2018.3` [skip ci] ([1eac3c9](1eac3c9)) * **kitchen+travis:** adjust matrix to add `3000.3` [skip ci] ([4fa9cb5](4fa9cb5)) * **kitchen+travis:** remove `master-py2-arch-base-latest` [skip ci] ([aa2f881](aa2f881)) * **travis:** add notifications => zulip [skip ci] ([1726c5a](1726c5a)) * **workflows/commitlint:** add to repo [skip ci] ([9572bd8](9572bd8))
🎉 This issue has been resolved in version 0.11.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Your setup
Formula commit hash / release tag
The formula used is v0.11.1, I checked the code in the master branch and it has the same problem.
Versions reports (master & minion)
Salt Version:
Salt: 2019.2.4
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.8.1
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.33.0
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.6.8 (default, Aug 7 2019, 17:28:10)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.4.2
ZMQ: 4.1.4
System Versions:
dist: centos 7.7.1908 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-1062.18.1.el7.x86_64
system: Linux
version: CentOS Linux 7.7.1908 Core
Pillar / config used
Below an example of the pillar file used. Note the allow key.
Bug details
Describe the bug
When running the formula and adding items 'allow' items in the pillar file they are pasted after each other and after the last item declared before it. This is caused to due to the for loop stripping the new lines. The first option when not specified is dhcpd.use_host_decl_names, which when not specified pastes the allow items behind a commented item.
Output:
#use-host-decl-names off;allow booting;allow bootp;
Steps to reproduce the bug
Do not specify the key dhcpd.use_host_decl_names and add several allow items like shown in the pillar example.
Expected behaviour
Output everything with newlines properly like show below.
#use-host-decl-names off;
allow booting;
allow bootp;
Attempts to fix the bug
Below the dhcp.allow with the allow in its own line
Using the code above will result in the mentioned expected outcome
Additional context
The text was updated successfully, but these errors were encountered: