mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Fixing upgrade_policy idempotence (#38022)
This commit is contained in:
parent
43ae240431
commit
ee96d42d7d
2 changed files with 39 additions and 0 deletions
|
@ -531,6 +531,13 @@ class AzureRMVirtualMachineScaleSet(AzureRMModuleBase):
|
|||
differences.append('Data Disks')
|
||||
changed = True
|
||||
|
||||
if self.upgrade_policy and \
|
||||
self.upgrade_policy != vmss_dict['properties']['upgradePolicy']['mode']:
|
||||
self.log('CHANGED: virtual machine scale set {0} - Upgrade Policy'.format(self.name))
|
||||
differences.append('Upgrade Policy')
|
||||
changed = True
|
||||
vmss_dict['properties']['upgradePolicy']['mode'] = self.upgrade_policy
|
||||
|
||||
update_tags, vmss_dict['tags'] = self.update_tags(vmss_dict.get('tags', dict()))
|
||||
if update_tags:
|
||||
differences.append('Tags')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue