Skip to content

Commit 42bc01a

Browse files
committed
Syntax cleanup
1 parent 728da91 commit 42bc01a

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

manifests/virtualenv.pp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@
6666
# === Authors
6767
#
6868
# Sergey Stankevich
69-
# Ashley Penney
70-
# Marc Fournier
71-
# Fotis Gimian
69+
# Shiva Poudel
7270
#
7371
define python::virtualenv (
7472
$ensure = present,
@@ -91,7 +89,6 @@
9189
) {
9290

9391
if $ensure == 'present' {
94-
9592
$python = $version ? {
9693
'system' => 'python',
9794
'pypy' => 'pypy',
@@ -103,8 +100,7 @@
103100
'system' => 'virtualenv',
104101
default => "virtualenv-${version}",
105102
}
106-
}
107-
else {
103+
} else {
108104
$used_virtualenv = $virtualenv
109105
}
110106

@@ -157,8 +153,6 @@
157153
mode => $mode
158154
}
159155

160-
161-
162156
exec { "python_virtualenv_${venv_dir}":
163157
command => "true ${proxy_command} && ${used_virtualenv} ${system_pkgs_flag} -p ${python} ${venv_dir} && ${venv_dir}/bin/pip wheel --help > /dev/null 2>&1 && { ${venv_dir}/bin/pip wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { ${venv_dir}/bin/pip --log ${venv_dir}/pip.log install ${pypi_index} ${proxy_flag} \$wheel_support_flag --upgrade pip ${distribute_pkg} || ${venv_dir}/bin/pip --log ${venv_dir}/pip.log install ${pypi_index} ${proxy_flag} --upgrade pip ${distribute_pkg} ;}",
164158
user => $owner,
@@ -193,7 +187,6 @@
193187
}
194188
}
195189
} elsif $ensure == 'absent' {
196-
197190
file { $venv_dir:
198191
ensure => absent,
199192
force => true,

0 commit comments

Comments
 (0)