Skip to content

Commit 5826ff4

Browse files
committed
fixup
1 parent ca6da83 commit 5826ff4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manifests/alias.pp

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
# Validate our booleans
5757
validate_bool($noaliasrouting)
5858
validate_bool($userctl)
59+
# Validate our regular expressions
60+
$states = [ '^up$', '^down$' ]
61+
validate_re($ensure, $states, '$ensure must be either "up" or "down".')
5962

6063
include '::network'
6164

0 commit comments

Comments
 (0)