update shared module junos to handle root logins

pull/14439/head
Peter Sprygada 10 years ago
parent 9c36c0aa80
commit 8f9badb2b4

@ -77,6 +77,7 @@ class NetworkModule(AnsibleModule):
def connect(self): def connect(self):
self.connection = Cli(self) self.connection = Cli(self)
self.connection.connect() self.connection.connect()
if self.connection.shell._matched_prompt.strip().endswith('%'):
self.execute('cli') self.execute('cli')
self.execute('set cli screen-length 0') self.execute('set cli screen-length 0')

Loading…
Cancel
Save