We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cfd150 commit d10dd58Copy full SHA for d10dd58
manifests/repo/apt.pp
@@ -79,7 +79,8 @@
79
fail('gluster::repo::apt currently only works on Debian')
80
}
81
82
- if ! $arch {
+
83
+ unless $arch {
84
fail("Architecture ${::architecture} not yet supported for ${::operatingsystem}.")
85
86
manifests/volume.pp
@@ -54,10 +54,10 @@
54
Optional[Integer] $arbiter = undef,
55
) {
56
57
- if $force {
58
- $_force = 'force'
+ $_force = if $force {
+ 'force'
59
} else {
60
- $_force = ''
+ ''
61
62
63
if $stripe {
@@ -66,10 +66,10 @@
66
$_stripe = ''
67
68
69
- if $replica {
70
- $_replica = "replica ${replica}"
+ $_replica = if $replica {
+ "replica ${replica}"
71
72
- $_replica = ''
73
74
75
$_transport = "transport ${transport}"
0 commit comments