Skip to content

Commit 8881c43

Browse files
committed
Only set subscribe to a requirements.txt file if manage_requirements is true
1 parent 5c0646b commit 8881c43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

manifests/requirements.pp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,13 @@
8888
replace => false,
8989
content => '# Puppet will install and/or update pip packages listed here',
9090
}
91+
92+
$local_subscribe = File[$requirements]
93+
} elsif File[$requirements] and $manage_requirements == true {
94+
$local_subscribe = File[$requirements]
95+
} else {
96+
$local_subscribe = undef
9197
}
92-
$local_subscribe = File[$requirements]
9398

9499
exec { "python_requirements${name}":
95100
provider => shell,

0 commit comments

Comments
 (0)