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

daemon_options appears to be broken with the latest stdlib #8

Closed
jyaworski opened this issue Apr 12, 2016 · 7 comments
Closed

daemon_options appears to be broken with the latest stdlib #8

jyaworski opened this issue Apr 12, 2016 · 7 comments

Comments

@jyaworski
Copy link

Hello:

When I updated stdlib, I get this when I run your module:

Notice: /Stage[main]/Sendmail::Mc/Concat[sendmail.mc]/File[/etc/mail/sendmail.mc]/content:
--- /etc/mail/sendmail.mc       2016-03-28 19:38:08.619650893 +0000
+++ /tmp/puppet-file20160412-15827-ex5s0m       2016-04-12 19:16:05.471658994 +0000
@@ -16,8 +16,8 @@
 dnl #
 dnl # Macros
 dnl #
-DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Port=smtp')dnl
-DAEMON_OPTIONS(`Name=MTA-v6, Family=inet6, Port=smtp, M=O')dnl
+DAEMON_OPTIONS(`')dnl
+DAEMON_OPTIONS(`')dnl
 dnl #
 dnl # Mailer
 dnl #

I this a problem with stdlib's delete function, or with this module?

@jyaworski
Copy link
Author

@smoeding
Copy link
Owner

When you say you updated stdlib, you talk about stdlib version 4.11.0, right? Or are you running stdlib from the current git repository?

@smoeding
Copy link
Owner

I believe you introduced an incompatible change to the delete function.
delete(['ab','b','c','b'], 'b') used to return [ 'ab', 'c' ] before your recent change. I think now it would only return [ 'c' ].

@jyaworski
Copy link
Author

Yep, thanks @smoeding. This isn't you.

puppetlabs/puppetlabs-stdlib#592

@jyaworski
Copy link
Author

Reopening this because there was a stdlib update that touched this, and it's still broken.

-DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Port=smtp')dnl
-DAEMON_OPTIONS(`Name=MTA-v6, Family=inet6, Port=smtp, M=O')dnl
+DAEMON_OPTIONS(`=, =, =, =, =, =, =, =, =, =, =')dnl
+DAEMON_OPTIONS(`=, =, =, =, =, =, =, =, =, =')dnl

This is from using an old stdlib vs updating to a new one. Maybe @bmjen and @hunner will have an opinion.

@jyaworski
Copy link
Author

jyaworski commented May 16, 2016

It looks like even with that PR merged, I still get this problem. There haven't been any changes to the delete function.

@jyaworski
Copy link
Author

PEBKAC.

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

2 participants