summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrishna Guha <trishnaguha17@gmail.com>2018-08-27 12:40:16 +0530
committerGitHub <noreply@github.com>2018-08-27 12:40:16 +0530
commit79a020e312c51dce59aa8dfea510438513536970 (patch)
tree88848f009afe0307f8157a095745b63a8283a184
parenta7f35e232e6405eb33dec2a101e2c00ac23391f6 (diff)
downloadansible-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.py2
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