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

Adds default values for section #153

Closed

Conversation

mrzarquon
Copy link
Contributor

Our documentation says to use "" for section if you want top of file
global settings, this defaults to that assumption if the user doesn't
provide a section parameter at all.

Our documentation says to use "" for section if you want top of file
global settings, this defaults to that assumption if the user doesn't
provide a section parameter at all.
@hunner
Copy link
Contributor

hunner commented Mar 18, 2015

Could you update the README as well?

@@ -152,7 +164,7 @@ If the above code is added, the resulting configured file will contain only line

* `provider`: The specific backend to use for this `ini_setting` resource. You will seldom need to specify this --- Puppet usually discovers the appropriate provider for your platform. The only available provider for `ini_setting` is ruby.

* `section`: The name of the INI file section in which the setting should be defined. Add a global section --- settings that appear at the beginning of the file, before any named sections --- by specifying a section name of "".
* `section`: The name of the INI file section in which the setting should be defined. Add a global section --- settings that appear at the beginning of the file, before any named sections --- by either not declaring this parameter or by specifying a section name of "".
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you actually say that it 'Defaults to ""' like the other parameters say?

@bmjen
Copy link
Contributor

bmjen commented Mar 30, 2015

Ping @mrzarquon. Thanks for the contribution. The fix looks good. However can you make a few updates?

  1. The doc update that @hunner requested? It should read something like...
  • section: The name of the INI file section in which the setting should be defined. Defaults to "", but you can explicitly add a global section --- settings that appear at the beginning of the file, before any named sections --- by specifying a section name of "".

Same applies to the subsetting definition.

  1. Please squash your commits down to 1 commit.
  2. Please rebase.

Thanks!

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.

None yet

3 participants