diff --git a/Netdisco/bin/netdisco-deploy b/Netdisco/bin/netdisco-deploy index 0fb189d4..3ef616c7 100755 --- a/Netdisco/bin/netdisco-deploy +++ b/Netdisco/bin/netdisco-deploy @@ -219,6 +219,9 @@ sub shorten { # Remove all spaces $manuf =~ s/\s+//g; + # Deviating from make-manuf for HP + $manuf =~ s/Hewlett[-]?Packard/Hp/; + # Truncate all names to a reasonable length, say, 8 characters. # If the string contains UTF-8, this may be substantially more than 8 bytes. $manuf = substr( $manuf, 0, 8 );