junos cli_config idempotence fix (#44706)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2018-08-27 12:40:16 +05:30 committed by GitHub
parent a7f35e232e
commit 79a020e312
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ class Cliconf(CliconfBase):
resp = self.send_command(command)
r = resp.splitlines()
if len(r) == 1 and r[0] == '[edit]':
if len(r) == 1 and '[edit]' in r[0]:
resp = ''
return resp