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 style in README example #10

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Fix style in README example #10

merged 1 commit into from
Nov 7, 2019

Conversation

ghoneycutt
Copy link
Member

No description provided.

ensure => present,
set => 'file:///tmp/bar_set_content',
type => 'hash:net',
subscribe => File['/tmp/bar_set_content'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes it from a require to subscribe. Is that intentional?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I prefer -> over subscribe/require.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style guide (which we should either follow or submit PRs against) prefers the metaparameters. https://puppet.com/docs/puppet/latest/style_guide.html#chaining-arrow-syntax

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just changing arrows to words, which is the preferred way to handle relationships.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> would translate to require. ~> would be subscribe.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@ghoneycutt ghoneycutt Oct 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get it was a before/require, but it should be a subscribe/notify. If the networks change, then the ipset should change, too.

@ghoneycutt
Copy link
Member Author

bump

@bastelfreak bastelfreak merged commit babc376 into master Nov 7, 2019
@bastelfreak bastelfreak deleted the ghoneycutt-patch-1 branch November 7, 2019 21:01
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

Successfully merging this pull request may close these issues.

5 participants