Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

puppet-lint: fix top_scope_facts warnings - #201

Open
bastelfreak wants to merge 1 commit into
voxpupuli:masterfrom
bastelfreak:puppet-lint-top_scope_facts-check
Open

puppet-lint: fix top_scope_facts warnings#201
bastelfreak wants to merge 1 commit into
voxpupuli:masterfrom
bastelfreak:puppet-lint-top_scope_facts-check

Conversation

@bastelfreak

Copy link
Copy Markdown
Member

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Comment thread manifests/gc.pp
) {
if $::stash_version {
if versioncmp($::stash_version, '3.2') < 0 {
if $facts['stash_version'] {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With strict variables, does this work if the fact is not defined? Should it use

Suggested change
if $facts['stash_version'] {
if fact('stash_version') {

Same goes for the other file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants