You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interface.get_ip_addr_ssh claims to return a string, but might return a list or dictionary.
Interface.get_ip_addr has an undocumented return, and ostensibly could return either an ip_address object or a string (falling back to get_ip_addr_ssh), but realistically could return any python object, since there's no gatekeeping on the contents of fablib_data[self.ADDR].
Interface.get_ips returns a list of anything, although oddly it often returns an empty list, even when the other methods work.
This means that a client either has to implement a rich type-inspection-and-handling regime, or more realistically, just ignore Interface and Node and implement everything themselves.
The text was updated successfully, but these errors were encountered:
Interface.get_ip_addr_ssh
claims to return a string, but might return a list or dictionary.Interface.get_ip_addr
has an undocumented return, and ostensibly could return either anip_address
object or a string (falling back toget_ip_addr_ssh
), but realistically could return any python object, since there's no gatekeeping on the contents of fablib_data[self.ADDR].Interface.get_ips
returns a list of anything, although oddly it often returns an empty list, even when the other methods work.This means that a client either has to implement a rich type-inspection-and-handling regime, or more realistically, just ignore
Interface
andNode
and implement everything themselves.The text was updated successfully, but these errors were encountered: