def getRemoteConsole(name, ipmiuser=None, ipmipass=None, ipmidomain=None, logfile=None, timeout=20): """ Return either VirtualConsole or PhysicalConsole depending on name. """ if teuthology.lock.query.is_vm(name): try: return console.VirtualConsole(name) except Exception: return None return console.PhysicalConsole( name, ipmiuser, ipmipass, ipmidomain, logfile, timeout)
def getRemoteConsole(name, ipmiuser=None, ipmipass=None, ipmidomain=None, logfile=None, timeout=20): """ Return either VirtualConsole or PhysicalConsole depending on name. """ if misc.is_vm(name): return console.VirtualConsole(name) return console.PhysicalConsole(name, ipmiuser, ipmipass, ipmidomain, logfile, timeout)