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 documentation about parameter port. #84

Merged
merged 1 commit into from
Jul 13, 2020
Merged

Conversation

chrekh
Copy link
Contributor

@chrekh chrekh commented Jul 12, 2020

This uptdates the documentation to match the current code concerning parameter port.

@chrekh
Copy link
Contributor Author

chrekh commented Jul 12, 2020

@vchepkov, do you think this is good?

@@ -136,10 +135,9 @@
# Also see [`makestep_seconds`](#makestep_seconds).
# @param queryhosts
# This adds the networks, hosts that are allowed to query the daemon.
# Note that `port` needs to be set for this to work.
Copy link
Member

Choose a reason for hiding this comment

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

The reference is generated by calling bundle exec rake strings:generate:reference and it looks like this isn't reflected there.

Copy link
Contributor Author

@chrekh chrekh Jul 12, 2020

Choose a reason for hiding this comment

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

I think that the docstring in init.pp is correct now, neither of init.pp or REFERENCE.md
has that note anymore. Probably the reference shoult be regenerated anyway?

Copy link
Contributor

@igalic igalic left a comment

Choose a reason for hiding this comment

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

🙋🏻‍♀️

# Port the service should listen on, to be used in combination with `queryhosts`.
# Module default is `0` to prevent accidental activation of server mode.
# Port the service should listen on.
# Module default is undef.
Copy link
Contributor

Choose a reason for hiding this comment

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

what does a default of undef mean?
why is it significant that it's a "module default"? as opposed to?
why do you have to spell it out here, rather than that default being pulled out from the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good questions

Is this better?

#   Port the service should listen on. Module default is `undef` which means that port
#   isn't added to chrony.conf, and chrony listens to the default ntp port 123 if
#   `queryhosts` is used.

Copy link
Contributor

Choose a reason for hiding this comment

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

much better.!

This uptdates the documentation to match the current code concerning parameter port.
@chrekh
Copy link
Contributor Author

chrekh commented Jul 12, 2020

I have force-pushed with the wording-change suggested by @igalic

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Thanks!

@ekohl ekohl merged commit 2767479 into voxpupuli:master Jul 13, 2020
@chrekh chrekh deleted the portdocfix branch July 13, 2020 12:24
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.

3 participants