-
Bug
-
Resolution: Done
-
Undefined
-
None
-
False
-
-
False
https://github.com/ansible-collections/vmware.vmware_rest/issues/354
-
-
-
-
- SUMMARY
Filter_names not working as expected in vmware.vmware_rest.vcenter_network_info
- SUMMARY
-
-
-
-
-
-
-
- ISSUE TYPE
An unfiltered call to vmware.vmware_rest.vcenter_network_info returns the following
- ISSUE TYPE
-
-
-
`ok: [localhost] => {
"network1_info": {
"changed": false,
"failed": false,
"value": [
,
,
{ "name": "VM Network Public", "network": "network-3162", "type": "STANDARD_PORTGROUP" } ]
}
}
`
If I use the following
` - name: Get a list of the networks with a filter
vmware.vmware_rest.vcenter_network_info:
names:
- "VM Network Public"
register: network2_info
- debug:
var: network2_info
`
returns an empty list, rather than a list with a single entry.
-
-
-
-
- COMPONENT NAME
vmware.vmware_rest.vcenter_network_info
- COMPONENT NAME
-
-
-
-
-
-
-
- ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
nsible 2.10.8
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0]
- ANSIBLE VERSION
-
-
-
```
-
-
-
-
- COLLECTION VERSION
<!--- Paste verbatim output from "ansible-galaxy collection list <namespace>.<collection>" between the quotes
for example: ansible-galaxy collection list community.general
-->
```paste below
vmware.vmware_rest 2.2.0
```
- COLLECTION VERSION
-
-
-
-
-
-
-
- CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
- CONFIGURATION
-
-
-
```
-
-
-
-
- OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
- OS / ENVIRONMENT
-
-
-
-
-
-
-
- STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
- STEPS TO REPRODUCE
-
-
-
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Get a list of the networks with a filter
vmware.vmware_rest.vcenter_network_info:
- filter_types: STANDARD_PORTGROUP
names:
- "VM Network Public"
register: network2_info
- debug:
var: network2_info
```
<!--- HINT: You can paste gist.github.com links for larger files -->
-
-
-
-
- EXPECTED RESULTS
The returned list should have contained an entry that matched "VM Network Public", instead, it returned an empty list
- EXPECTED RESULTS
-
-
-
-
-
-
-
- ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
- ACTUAL RESULTS
-
-
-
<!--- Paste verbatim command output between quotes -->
```paste below
```