projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a300523
)
Do not do regex fo on variables that might not be defined yet
author
Peter Palfrader
<peter@palfrader.org>
Thu, 21 Sep 2017 14:06:21 +0000
(14:06 +0000)
committer
Peter Palfrader
<peter@palfrader.org>
Thu, 21 Sep 2017 14:06:21 +0000
(14:06 +0000)
modules/grub/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/grub/manifests/init.pp
b/modules/grub/manifests/init.pp
index
d23e3e8
..
bbb4ca4
100644
(file)
--- a/
modules/grub/manifests/init.pp
+++ b/
modules/grub/manifests/init.pp
@@
-27,7
+27,7
@@
class grub {
if $grub_manage {
# hp-health requires nopat on linux 4.9
- $grub_do_nopat = ($::systemproductname =~ /^ProLiant/ and versioncmp($::kernelversion, '4.9') >= 0)
+ $grub_do_nopat = ($::systemproductname
and $::systemproductname
=~ /^ProLiant/ and versioncmp($::kernelversion, '4.9') >= 0)
$grub_do_extra = $::hostname in [fasolo]