Skip to content

Commit ced4eb6

Browse files
authored
Merge pull request #926 from cgb/fix-iosxe-prompt
sq-poller: Fix reference to undefined self.prompt in _ssh_connect
2 parents 49ee13a + 0ff9edb commit ced4eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suzieq/poller/worker/nodes/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,6 @@ async def _rest_gather(self, service_callback, cmd_list, cb_token,
16791679

16801680
async def _fetch_init_dev_data_devtype(self, reconnect: bool):
16811681
"""Fill in the boot time of the node by executing certain cmds"""
1682-
self.prompt = self.IOS_DEFAULT_PROMPT
16831682
await self._exec_cmd(self._parse_init_dev_data,
16841683
["show version"], None, 'text',
16851684
reconnect=reconnect)
@@ -1689,6 +1688,7 @@ async def _ssh_connect(self):
16891688
enough as we need to start an interactive session for XE.
16901689
"""
16911690
await super()._ssh_connect()
1691+
self.prompt = self.IOS_DEFAULT_PROMPT
16921692

16931693
if self.is_connected and not self._stdin:
16941694
self.logger.info(

0 commit comments

Comments
 (0)