Skip to content

Commit

Permalink
Merge pull request #27 from matonb/master
Browse files Browse the repository at this point in the history
Fix lint issues
  • Loading branch information
walkamongus authored Jul 15, 2017
2 parents f657f0f + 7c1da2e commit ea5dc0a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ env:
- PUPPET_GEM_VERSION="~> 4.8.0" STRICT_VARIABLES=yes
- PUPPET_GEM_VERSION="~> 4.9.0" STRICT_VARIABLES=yes
- PUPPET_GEM_VERSION="~> 4.10.0" STRICT_VARIABLES=yes
- PUPPET_GEM_VERSION="~> 5.0.0" STRICT_VARIABLES=yes
matrix:
exclude:
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
source "https://rubygems.org"

puppetversion = ENV['PUPPET_VERSION'].nil? ? '~> 4.5' : ENV['PUPPET_VERSION'].to_s
puppetver = Gem::Version.new(%r/([\d.]+)/.match(puppetversion)[1])

group :test do
gem "rake"
gem "puppet", ENV['PUPPET_GEM_VERSION'] || '~> 4.5'
gem "puppet", puppetversion
gem "rspec", '~> 3.4.0'
gem "rspec-puppet", :git => 'https://github.com/rodjek/rspec-puppet.git'
gem "puppetlabs_spec_helper", '~> 2.1'
gem "metadata-json-lint"
gem "rspec-puppet-facts"
gem 'rubocop', '0.40.0'
gem 'semantic_puppet' unless puppetver >= Gem::Version.new('5.0')
gem 'simplecov', '>= 0.11.0'
gem 'simplecov-console'
gem 'puppet-lint', '>= 2.0.0'
Expand Down
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ require 'bundler/setup'

require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet/version'
require 'puppet/vendor/semantic/lib/semantic' unless Puppet.version.to_f < 3.6
require 'puppet-lint/tasks/puppet-lint'
require 'puppet-syntax/tasks/puppet-syntax'
require 'metadata-json-lint/rake_task'
Expand Down
4 changes: 2 additions & 2 deletions manifests/join/password.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
$_ou = $::realmd::ou

if $_ou != undef {
$_realm_args = [$_domain, "--unattended", "--computer-ou=${_ou}", "--user=${_user}"]
$_realm_args = [$_domain, '--unattended', "--computer-ou=${_ou}", "--user=${_user}"]
} else {
$_realm_args = [$_domain, "--unattended", "--user=${_user}"]
$_realm_args = [$_domain, '--unattended', "--user=${_user}"]
}

$_args = join($_realm_args, ' ')
Expand Down

0 comments on commit ea5dc0a

Please sign in to comment.