summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.")
}