jadams / sysinfo

MIT License
1 stars 1 forks source link

Updated _fqdn, _uptime, _distro methods. Fixed runtime errors #2

Closed tcarrio closed 8 years ago

tcarrio commented 8 years ago

Fix the runtime errors for several functions.

_get_uptime() throws errors if the returned list has less than 3 values.

_detect_distro() should be fully functioning with a defined distro dict for future expansions

_get_fqdn() fills in blanks where hostname -f returns less than 3 values

Many of these issues will be fixed by changing code within the full_print() method, trying to move towards smarter data structure for these methods