From bc28c964c9d9ffd6ec168cc498b1be5f1c367d9c Mon Sep 17 00:00:00 2001 From: yanzhangi <51999930+yanzhangi@users.noreply.github.com> Date: Sat, 12 Oct 2019 03:44:47 +0800 Subject: [PATCH] [Backport/2.8/61654]Update ce_ntp to fix bugs (#62655) * Update ce_ntp to fix bugs (cherry picked from commit afea7cc454bca6fb9725c198ed650134f0f7ae98) * Update ce_ntp modified information --- changelogs/fragments/61654-ce_ntp-to-fix-bugs.yml | 2 ++ lib/ansible/modules/network/cloudengine/ce_ntp.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/61654-ce_ntp-to-fix-bugs.yml diff --git a/changelogs/fragments/61654-ce_ntp-to-fix-bugs.yml b/changelogs/fragments/61654-ce_ntp-to-fix-bugs.yml new file mode 100644 index 00000000000..ceda1ff0698 --- /dev/null +++ b/changelogs/fragments/61654-ce_ntp-to-fix-bugs.yml @@ -0,0 +1,2 @@ +bugfixes: +- ce_ntp - update to fix some bugs - Add some update statements. (https://github.com/ansible/ansible/pull/61654) diff --git a/lib/ansible/modules/network/cloudengine/ce_ntp.py b/lib/ansible/modules/network/cloudengine/ce_ntp.py index ec42d9b3ccb..17a263972aa 100644 --- a/lib/ansible/modules/network/cloudengine/ce_ntp.py +++ b/lib/ansible/modules/network/cloudengine/ce_ntp.py @@ -574,7 +574,8 @@ class Ntp(object): cli_str = "%s %s" % ( "undo ntp unicast-peer ipv6", self.address) if (self.vpn_name) and (self.vpn_name != '_public_'): - cli_str = "%s %s" % (cli_str, self.vpn_name) + cli_str = "%s %s %s" % ( + cli_str, "vpn-instance", self.vpn_name) self.updates_cmd.append(cli_str)