Fixing azure_rm_postgresqldatabase force_update parameter (#52388)

This commit is contained in:
Zim Kalinowski 2019-02-18 14:04:01 +08:00 committed by GitHub
parent 2daaf4eedd
commit 8422e23533
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 0 deletions

View file

@ -145,6 +145,7 @@ class AzureRMDatabases(AzureRMModuleBase):
self.resource_group = None
self.server_name = None
self.name = None
self.force_update = None
self.parameters = dict()
self.results = dict(changed=False)
@ -199,6 +200,7 @@ class AzureRMDatabases(AzureRMModuleBase):
if not self.check_mode:
self.delete_postgresqldatabase()
else:
self.fail("Database properties cannot be updated without setting 'force_update' option")
self.to_do = Actions.NoAction
if (self.to_do == Actions.Create) or (self.to_do == Actions.Update):