1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

vultr_server: fix diff for user data (#45753)

This commit is contained in:
René Moser 2018-09-18 23:20:11 +02:00 committed by GitHub
parent abe8e4c9e8
commit 22986648dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -648,8 +648,8 @@ class AnsibleVultrServer(Vultr):
server_user_data = self.get_server_user_data(server=server) server_user_data = self.get_server_user_data(server=server)
if user_data is not None and user_data != server_user_data: if user_data is not None and user_data != server_user_data:
self.result['changed'] = True self.result['changed'] = True
self.result['diff']['before']['tag'] = server_user_data self.result['diff']['before']['user_data'] = server_user_data
self.result['diff']['after']['tag'] = user_data self.result['diff']['after']['user_data'] = user_data
if not self.module.check_mode: if not self.module.check_mode:
data = { data = {