_get_hostname() was incorrectly assuming it was dropping into a switch unprivileged. This is now fixed.
_get_hostname() was incorrectly assuming it was dropping into a switch
unprivileged. This is now fixed.

nickpegg/ciscolib,SANKUAI-IT/ciscolib