From 3a52e30b52ffefb65d8cd6e1d1a1168e1a06c3fb Mon Sep 17 00:00:00 2001 From: liamjbennett Date: Thu, 5 Jun 2014 09:29:39 +0100 Subject: [PATCH] fixing lint issues --- Rakefile | 2 ++ manifests/init.pp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 623b0b3..3c0c32b 100644 --- a/Rakefile +++ b/Rakefile @@ -18,6 +18,8 @@ PuppetLint.configuration.fail_on_warnings = true PuppetLint.configuration.send('disable_class_parameter_defaults') # http://puppet-lint.com/checks/class_inherits_from_params_class/ PuppetLint.configuration.send('disable_class_inherits_from_params_class') +# http://puppet-lint.com/checks/autoloader_layout/ +PuppetLint.configuration.send('disable_autoloader_layout') exclude_paths = [ "pkg/**/*", diff --git a/manifests/init.pp b/manifests/init.pp index 5f48040..2974b1c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,8 +1,8 @@ # define sslcertificate($name, $password, $location, $thumbprint, $root_store = 'LocalMachine', $store_dir = 'My') { - validate_re($name, ['^(.)+$'],"Must pass name to ${module_name}\[${title}\]") - validate_re($location, ['^(.)+$'],"Must pass location to ${module_name}\[${title}\]") - validate_re($thumbprint, ['^(.)+$'], "Must pass a certificate thumbprint to ${module_name}\[${title}\]") + validate_re($name, '^(.)+$',"Must pass name to ${module_name}[${title}]") + validate_re($location, '^(.)+$',"Must pass location to ${module_name}[${title}]") + validate_re($thumbprint, '^(.)+$', "Must pass a certificate thumbprint to ${module_name}[${title}]") if ! defined(File['C:\temp']) { file { 'C:\temp':