summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-08 20:06:45 +0200
committermh <mh@immerda.ch>2011-10-08 20:06:45 +0200
commit49b941aa8943b463c596898a672d68adc87a8c9b (patch)
tree647d991c9ee66b4c5346293fa866a1551f0d0468
parent9bbd720da1549bf58c7707c1ac109a47e4b4a946 (diff)
use new stdlib function
-rw-r--r--manifests/managed.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/managed.pp b/manifests/managed.pp
index 20ab6d4..94cda35 100644
--- a/manifests/managed.pp
+++ b/manifests/managed.pp
@@ -56,7 +56,7 @@ define user::managed(
default => $shell,
}
- if strlength($name) > 31 {
+ if size($name) > 31 {
fail("Usernames can't be longer than 31 characters. ${name} is too long!")
}