remove porterbox purpose when we add the porterbox blurb to the motd
authorPeter Palfrader <peter@palfrader.org>
Sun, 8 Sep 2019 10:30:11 +0000 (12:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 8 Sep 2019 10:30:11 +0000 (12:30 +0200)
modules/motd/templates/motd.erb

index 41aa808..10aeec2 100644 (file)
@@ -52,6 +52,7 @@ if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('purpose'))
   end
   if classes.include?("roles::porterbox")
     entries += ", the Debian #{arch} porterbox"
+    p.delete('porterbox')
   end
 
   if p.size() > 0