Actions
Bug #26961
closedField filtering (--fileds option) prints more fields then requested
Difficulty:
Triaged:
No
Pull request:
Team Backlog:
Description
Currently fields prints all fields that start with the field in the list. I like the possibilities this opens but would prefer it to be rather opt-in.
Current state:
hammer host info --id 4 --fields network Network: IPv4 address: 192.168.121.172 MAC: 52:54:00:c8:6b:01 Subnet ipv4: pichi.example.com Domain: pichi.example.com Network interfaces: 1) Id: 4 Identifier: eth0 Type: interface (primary, provision) MAC address: 52:54:00:c8:6b:01 IPv4 address: 192.168.121.172 FQDN: centos7.pichi.example.com
I would expect only "Network" to be printed as it is what I asked for. Possibility to have 'hammer host info --id 4 --fields network*' for what we see today would be nice and useful.
Actions