use new stdlib function
authormh <mh@immerda.ch>
Sat, 8 Oct 2011 18:06:45 +0000 (20:06 +0200)
committermh <mh@immerda.ch>
Sat, 8 Oct 2011 18:06:45 +0000 (20:06 +0200)
manifests/managed.pp

index 20ab6d4..94cda35 100644 (file)
@@ -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!")
     }