Skip to content

replace validate_* calls with datatypes & minor fixes#223

Merged
binford2k merged 7 commits intopuppetlabs:masterfrom
bastelfreak:puppet4
Jun 7, 2017
Merged

replace validate_* calls with datatypes & minor fixes#223
binford2k merged 7 commits intopuppetlabs:masterfrom
bastelfreak:puppet4

Conversation

@bastelfreak
Copy link
Copy Markdown
Collaborator

No description provided.

@bastelfreak bastelfreak force-pushed the puppet4 branch 2 times, most recently from 9b532c3 to e7e8279 Compare April 5, 2017 15:15
Copy link
Copy Markdown
Contributor

@jbondpdx jbondpdx left a comment

Choose a reason for hiding this comment

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

Docs look good, but the ToC should still be an h4 for consistency with other module READMEs.

@bastelfreak
Copy link
Copy Markdown
Collaborator Author

@jbondpdx updated it.

@jbondpdx
Copy link
Copy Markdown
Contributor

jbondpdx commented Jun 7, 2017

Awesome, thank you. I get your logic in changing it, but consistency.

Copy link
Copy Markdown
Contributor

@jbondpdx jbondpdx left a comment

Choose a reason for hiding this comment

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

docs are OK

Pattern[/present|installed|latest|^[.+_0-9a-zA-Z:~-]+$/] $version = 'present',
$package = undef,
Optional[Array] $package_options = undef,
$java_alternative = undef,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't these be Optional[String]?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The goal was to replace all the validate_* calls with datatypes, not to add datatypes to all parameters. I normally mention this, but somehow forgot it here. I added datatypes to all params in init.pp now.

@binford2k binford2k merged commit 1af563c into puppetlabs:master Jun 7, 2017
@bastelfreak bastelfreak deleted the puppet4 branch June 7, 2017 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants