From 4b498aa8607a5ef3d4c78349baa9e635392673a1 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 18 Mar 2015 11:52:58 +0200 Subject: [PATCH] python: Lint fixes --- python/manifests/init.pp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python/manifests/init.pp b/python/manifests/init.pp index 76ebc00..c60fa56 100644 --- a/python/manifests/init.pp +++ b/python/manifests/init.pp @@ -67,7 +67,10 @@ class python::m2crypto { # source => "puppet:///files/packages/moin-1.8.8.tar.gz", # } # -define python::setup::install($python="python", $source="") { +define python::setup::install( + $python="python", + $source=undef, +) { if $source { $filename = basename($source) @@ -75,7 +78,7 @@ define python::setup::install($python="python", $source="") { ensure => present, mode => "0644", owner => "root", - group => $operatingsystem ? { + group => $::operatingsystem ? { "openbsd" => "wheel", default => "root", }, @@ -83,7 +86,7 @@ define python::setup::install($python="python", $source="") { } util::extract::tar { $name: ensure => latest, - strip => 1, + strip => "1", source => "/usr/local/src/${filename}", require => File["/usr/local/src/${filename}"], before => Exec["python-setup-install-${name}"], @@ -99,6 +102,7 @@ define python::setup::install($python="python", $source="") { } + # Compile python script into binary form. # # === Parameters