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

Fix xinetd parsing of services from the same file. Expose resource.protocols #1444

Merged
merged 2 commits into from
Jan 31, 2017

Conversation

alexpop
Copy link
Contributor

@alexpop alexpop commented Jan 31, 2017

When services are in the same file, with the tcp and udp protocol configurations, only the second one was being exposed by the resource. This PR fixes that.

It also adds another mocked xinetd file, same way they are by default in Ubuntu:

[root@vagrant-local-ubuntu1404]# ls /etc/xinetd.d/echo*
/etc/xinetd.d/echo

where the existing chargen mocked configs follow the split RedHat format:

[root@ap-cc6 ~]# ls /etc/xinetd.d/echo*
/etc/xinetd.d/echo-dgram  /etc/xinetd.d/echo-stream

@alexpop alexpop self-assigned this Jan 31, 2017
…otocols

Signed-off-by: Alex Pop <apop@chef.io>
Signed-off-by: Alex Pop <apop@chef.io>
@alexpop alexpop changed the title WIP: Fix xinetd parsing of services from the same file. Expose resource.protocols Fix xinetd parsing of services from the same file. Expose resource.protocols Jan 31, 2017
@chris-rock
Copy link
Contributor

Thank you @alexpop

@chris-rock chris-rock merged commit a060e65 into master Jan 31, 2017
@chris-rock chris-rock deleted the ap/fix-xinetd-parsing branch January 31, 2017 16:46
@arlimus arlimus added the Type: Bug Feature not working as expected label Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants