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 #903

Signed-off-by: Hideki Saito <saito@fgrep.org>
  • Loading branch information
saito-hideki committed Jun 29, 2022
1 parent 0a7eb5e commit 19c027b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,10 +925,10 @@ def _ansible_get_models(self, *arg, **kwarg):
client.models = types.MethodType(_ansible_get_models, client)

if not is_track2:
client.config = self.add_user_agent(client.config)
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
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 19c027b

Please sign in to comment.