From 0dec6db43fadb6796d622e101c1edaa59e3d5791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Tue, 18 Sep 2018 23:20:11 +0200 Subject: [PATCH] vultr_server: fix diff for user data (#45753) (cherry picked from commit 22986648dceee9f643236270fdbd5d1ff4539ce1) --- lib/ansible/modules/cloud/vultr/vultr_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/vultr/vultr_server.py b/lib/ansible/modules/cloud/vultr/vultr_server.py index 6873faeb906..9bdbc4baf6a 100644 --- a/lib/ansible/modules/cloud/vultr/vultr_server.py +++ b/lib/ansible/modules/cloud/vultr/vultr_server.py @@ -644,8 +644,8 @@ class AnsibleVultrServer(Vultr): server_user_data = self.get_server_user_data(server=server) if user_data is not None and user_data != server_user_data: self.result['changed'] = True - self.result['diff']['before']['tag'] = server_user_data - self.result['diff']['after']['tag'] = user_data + self.result['diff']['before']['user_data'] = server_user_data + self.result['diff']['after']['user_data'] = user_data if not self.module.check_mode: data = {