diff --git a/lib/ansible/plugins/cliconf/junos.py b/lib/ansible/plugins/cliconf/junos.py index 6feb5de91b0..98acf37005b 100644 --- a/lib/ansible/plugins/cliconf/junos.py +++ b/lib/ansible/plugins/cliconf/junos.py @@ -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):