Skip to content

Commit

Permalink
Replace config with _config for the latest azure-mgmt-network.
Browse files Browse the repository at this point in the history
* Addresses issue ansible-collections#903

Signed-off-by: Hideki Saito <saito@fgrep.org>
  • Loading branch information
saito-hideki committed Jul 4, 2022
1 parent 0a7eb5e commit 8089bc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions plugins/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,9 +926,11 @@ def _ansible_get_models(self, *arg, **kwarg):

if not is_track2:
client.config = self.add_user_agent(client.config)

if self.azure_auth._cert_validation_mode == 'ignore':
client.config.session_configuration_callback = self._validation_ignore_callback
if self.azure_auth._cert_validation_mode == 'ignore':
client.config.session_configuration_callback = self._validation_ignore_callback
else:
if self.azure_auth._cert_validation_mode == 'ignore':
client._config.session_configuration_callback = self._validation_ignore_callback

return client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@
- postgresqlServer
subnet:
id: "{{ subnet_output.state.id }}"
tags:
tags:
key1: value1
cert_validation_mode: ignore
register: output

- name: Assert status succeeded and results match expectations
Expand Down

0 comments on commit 8089bc7

Please sign in to comment.