aol/trigger — pull request #68 by jathanism (2013-02-01 20:42:50+00:00)
Title: Trigger 1.3 crashing on Telnet connections

Looks like we introduced a nice new bug w/ telnet:

Fetching credentials from /home/jathan/.tacacsrc
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python/site-packages/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python/site-packages/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
--- ---
File "/usr/local/lib/python/site-packages/twisted/internet/posixbase.py", line 586, in _doReadOrWrite
why = selectable.doRead()
File "/usr/local/lib/python/site-packages/twisted/internet/tcp.py", line 199, in doRead
rval = self.protocol.dataReceived(data)
File "/usr/local/lib/python/site-packages/twisted/conch/telnet.py", line 588, in dataReceived
self.applicationDataReceived(''.join(appDataBuffer))
File "/usr/local/lib/python/site-packages/trigger/twister.py", line 1439, in login_state_machine
next_state()
File "/usr/local/lib/python/site-packages/trigger/twister.py", line 1508, in state_login_pw
pw = NetDevices().find(self.host).loginPW
exceptions.AttributeError: TriggerTelnet instance has no attribute 'host'