mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-18 06:41:04 +00:00
junos cliconf diff fix (#44109)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user