summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2015-01-15 16:06:56 -0500
committerJames Shubin <james@shubin.ca>2015-01-15 16:06:56 -0500
commit8f046435d2357ec2cd149a3e4bec56fc172bcc33 (patch)
tree3964c4cf527491bc37570a63897830b2e8984840
parent22fd79b7479eb162947d8cd2a3d2cb521ac57c14 (diff)
downloadpuppet-gluster-8f046435d2357ec2cd149a3e4bec56fc172bcc33.zip
puppet-gluster-8f046435d2357ec2cd149a3e4bec56fc172bcc33.tar.gz
puppet-gluster-8f046435d2357ec2cd149a3e4bec56fc172bcc33.tar.xz
Fix uuid check that was missing a not operator.
Thanks to: "Vincent--" for reporting the issue.
-rw-r--r--manifests/brick.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/brick.pp b/manifests/brick.pp
index 8358ad2..4724eb7 100644
--- a/manifests/brick.pp
+++ b/manifests/brick.pp
@@ -84,7 +84,7 @@ define gluster::brick(
#
# fsuuid...
#
- if ("${fsuuid}" != '') and "${fsuuid}" =~ /^[a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12}$/ {
+ if ("${fsuuid}" != '') and (! ("${fsuuid}" =~ /^[a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12}$/)) {
fail("The chosen fs uuid: '${fsuuid}' is not valid.")
}