Closed faux-eccles closed 6 years ago
An excellent point, specially now when I'm evaluating the caching mechanism to be used , thanks .
This host object idea is partially applied now , yet I still think it needs to be revisited again later, will keep this issue opened
This is further worked upon in #35
handled in #42
Currently when
list_allowed()
is called on line 70 of aker.py, a list of strings that contain the host names are returned.I suggest that a list of host objects are returned instead. This will allow for host based configuration when listed.
psudo representation of some of the proposed host class properties
In the list of available hosts in tui, I suggest changing the display to:
<canonical name> (<hostname>)
so if I had a host with "name = NAS" and "hostname = nas.internal.example.com", it would be displayed as so:
nas (nas.internal.example.com)
This would require some refactoring to handle the hosts as object and not strings but would allow for more complex per host configuration if defined as additional properties via ldap or other authority
This might help when dealing with #29 as it suggests a format of what properties of a host would need to be stored