junos cli_config idempotence fix (#44706)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/44700/merge
Trishna Guha 6 years ago committed by GitHub
parent a7f35e232e
commit 79a020e312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save