Skip to content

Commit

Permalink
Conform to strict_variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfens committed Feb 23, 2017
1 parent 8afca8d commit ede4c4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ matrix:
- rvm: 2.3.1
bundler_args: --without development
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true STRICT_VARIABLES=yes
script: bundle exec rake beaker
services: docker
sudo: required
Expand All @@ -40,7 +40,7 @@ matrix:
script: bundle exec rake rubocop
- rvm: 2.1.9
bundler_args: --without system_tests development
env: PUPPET_GEM_VERSION="~> 4.5" STRICT_VARIABLES="yes"
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES=yes
- rvm: 2.1.9
bundler_args: --without system_tests development
env: PUPPET_GEM_VERSION="~> 3.8"
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

validate_bool($manage_repo, $prospectors_merge)

if $major_version == undef and $::filebeat_version == undef {
if $major_version == undef and getvar('::filebeat_version') == undef {
$real_version = '5'
} elsif $major_version == undef and versioncmp($::filebeat_version, '5.0.0') >= 0 {
$real_version = '5'
Expand Down

0 comments on commit ede4c4a

Please sign in to comment.