Skip to content

Commit

Permalink
vultr_server: fix diff for user data (ansible#45753)
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo authored Sep 18, 2018
1 parent abe8e4c commit 2298664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/cloud/vultr/vultr_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ def _update_server(self, server=None, start_server=True):
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 = {
Expand Down

0 comments on commit 2298664

Please sign in to comment.