summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryanzhangi <51999930+yanzhangi@users.noreply.github.com>2019-10-12 23:42:51 +0800
committerToshio Kuratomi <a.badger@gmail.com>2019-10-12 09:17:09 -0700
commit2afe239e4e9c597c30d7155b63d224fc51557f25 (patch)
treea56a7cf8eab10a0e0326f6427e3e1125249cf0eb
parentdff3fb58d7ef845fedcf4c7d9fe12f6713405176 (diff)
downloadansible-2afe239e4e9c597c30d7155b63d224fc51557f25.tar.gz
[Backport/2.9/61442]Update ce_mtu to fix bugs (#62684)
* Update ce_mtu to fix bugs (cherry picked from commit cb8a3a4c06cdddad4f77558a95d39d4800470934) * Update ce_mtu modified information
-rw-r--r--changelogs/fragments/61442-ce_mtu-to-fix-bugs.yml2
-rw-r--r--lib/ansible/modules/network/cloudengine/ce_mtu.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/fragments/61442-ce_mtu-to-fix-bugs.yml b/changelogs/fragments/61442-ce_mtu-to-fix-bugs.yml
new file mode 100644
index 0000000000..2812aef89f
--- /dev/null
+++ b/changelogs/fragments/61442-ce_mtu-to-fix-bugs.yml
@@ -0,0 +1,2 @@
+bugfixes:
+- ce_mtu- update to fix some bugs - Contrast before and after adding configuration. (https://github.com/ansible/ansible/pull/61442)
diff --git a/lib/ansible/modules/network/cloudengine/ce_mtu.py b/lib/ansible/modules/network/cloudengine/ce_mtu.py
index f63c32c62a..7d037cf7e7 100644
--- a/lib/ansible/modules/network/cloudengine/ce_mtu.py
+++ b/lib/ansible/modules/network/cloudengine/ce_mtu.py
@@ -534,6 +534,8 @@ class Mtu(object):
else:
self.end_state[
"jumboframe"] = "jumboframe enable %s %s" % (self.jbf_max, 1518)
+ if self.end_state == self.existing:
+ self.changed = False
def work(self):
"""worker"""