Skip to content

Commit

Permalink
Fix lint warnings and ensure lint fails on warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Colleen Murphy committed Feb 12, 2015
1 parent b64ca51 commit d6b1642
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'

PuppetLint.configuration.fail_on_warnings
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send('relative')
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
Expand Down
24 changes: 14 additions & 10 deletions examples/mysql_plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@
root_password => 'password'
}

mysql::plugin{ 'validate_password':
$validate_password_soname = $::osfamily ? {
windows => 'validate_password.dll',
default => 'validate_password.so'
}

mysql::plugin { 'validate_password':
ensure => present,
soname => $::osfamily ? {
windows => 'validate_password.dll',
default => 'validate_password.so'
}
soname => $validate_password_soname,
}

$auth_socket_soname = $::osfamily ? {
windows => 'auth_socket.dll',
default => 'auth_socket.so'
}

mysql::plugin{ 'auth_socket':
mysql::plugin { 'auth_socket':
ensure => present,
soname => $::osfamily ? {
windows => 'auth_socket.dll',
default => 'auth_socket.so'
}
soname => $auth_socket_soname,
}

0 comments on commit d6b1642

Please sign in to comment.