diff --git a/manifests/init.pp b/manifests/init.pp index f9f6551..82ac5fc 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,11 +4,7 @@ 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': - ensure => directory, - } - } + ensure_resource('file', 'c:\temp', { ensure => directory }) file { "inspect-${name}-certificate.ps1" : ensure => present,