forked from ansible-collections/community.vmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmware_host_firewall_manager: Remove deprecated functionality (ansibl…
…e-collections#1463) vmware_host_firewall_manager: Remove deprecated functionality SUMMARY Fixes ansible-collections#1197 ISSUE TYPE Feature Pull Request COMPONENT NAME vmware_host_firewall_manager ADDITIONAL INFORMATION community.vmware/plugins/modules/vmware_host_firewall_manager.py Lines 387 to 395 in ce764aa if isinstance(rule_option['allowed_hosts'], list): if len(rule_option['allowed_hosts']) == 1: allowed_hosts = rule_option['allowed_hosts'][0] rule_option['allowed_hosts'] = allowed_hosts module.deprecate( msg='allowed_hosts should be a dict, not a list', version='3.0.0', collection_name='community.vmware' ) and community.vmware/plugins/modules/vmware_host_firewall_manager.py Lines 398 to 406 in ce764aa try: isinstance(rule_option["allowed_hosts"]["all_ip"], bool) except (KeyError, IndexError): module.deprecate( msg=('Please adjust your playbook to ensure the `allowed_hosts` ' 'entries come with an `all_ip` key (boolean).'), version='3.0.0', collection_name='community.vmware' )
- Loading branch information
Showing
3 changed files
with
324 additions
and
281 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
changelogs/fragments/1196-vmware_host_firewall_manager-remove_deprecated_stuff.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
removed_features: | ||
- vmware_host_firewall_manager - The module doesn't accept a list for `allowed_hosts` anymore. | ||
- vmware_host_firewall_manager - The module doesn't accept `allowed_hosts` without defining `all_ip` anymore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.