junos cliconf diff fix (#44109)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/43715/head
Trishna Guha 6 years ago committed by GitHub
parent b14f256d41
commit 227bf61daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -167,6 +167,11 @@ class Cliconf(CliconfBase):
if rollback_id is not None:
command += ' rollback %s' % int(rollback_id)
resp = self.send_command(command)
r = resp.splitlines()
if len(r) == 1 and r[0] == '[edit]':
resp = ''
return resp
def get_diff(self, rollback_id=None):

Loading…
Cancel
Save