junos cliconf diff fix (#44109)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2018-08-14 13:01:27 +05:30 committed by GitHub
parent b14f256d41
commit 227bf61daa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):