diff options
author | Trishna Guha <trishnaguha17@gmail.com> | 2018-08-27 12:40:16 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-27 12:40:16 +0530 |
commit | 79a020e312c51dce59aa8dfea510438513536970 (patch) | |
tree | 88848f009afe0307f8157a095745b63a8283a184 | |
parent | a7f35e232e6405eb33dec2a101e2c00ac23391f6 (diff) | |
download | ansible-79a020e312c51dce59aa8dfea510438513536970.tar.gz |
junos cli_config idempotence fix (#44706)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
-rw-r--r-- | lib/ansible/plugins/cliconf/junos.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/cliconf/junos.py b/lib/ansible/plugins/cliconf/junos.py index 98acf37005..1ed4363a55 100644 --- a/lib/ansible/plugins/cliconf/junos.py +++ b/lib/ansible/plugins/cliconf/junos.py @@ -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 |