python: Lint fixes

This commit is contained in:
Ossi Salmi 2015-03-18 11:52:58 +02:00
parent 1a8da38cf3
commit 4b498aa860

View file

@ -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