bootleg
bootleg copied to clipboard
Formatting of hosts could be prettier
Is there a reason why there's an extra space after the IP address in all bootleg output?
[a.b.c.d ]
The host name is padded with 10 spaces to the right. In your case it's an IP address but this could also be an alias from /etc/hosts
or a fully-qualified domain name.
The original reason for this was an attempt to get host names to line up when having multiple servers, e.g.:
[host1 ] doing it
[host256] doing it
Okay, so this just gets them to line up right if they aren't too long (i.e. no 15 character IP addresses or longer than 10 char hostnames). It just looks off, but it obviously doesn't need to be considered a bug. :)
Discussed this with @holetse earlier and we decided to keep this around as a future fix-it ticket. One possible solution he brought up: Bootleg could calculate maximum length of hostnames / IPs and decide on a padding format at start-up.
How are we feeling about just padding like so:
[host] do it
[host123] do it