vultr / ansible-collection-vultr

GNU General Public License v3.0
28 stars 17 forks source link

[BUG] - Wrong name-label alias in instance_info module #105

Closed samerbahri98 closed 8 months ago

samerbahri98 commented 8 months ago

Describe the bug the documentation for the instance_info indicate that name is an alias for label, however currently it is behaving as an alias for region instead

To Reproduce Steps to reproduce the behavior:

  1. Run this playbook

    ---
    - name: Instance
    hosts: localhost
    tasks:
    - name: Deploy Instance
      vultr.cloud.instance:
        label: foo
        region: fra
        plan: vc2-1c-1gb
        os: Ubuntu 22.04 LTS x64
    
    - name: Get Instance
      vultr.cloud.instance_info:
        name: foo
      register: results
    
    - debug:
        var: results
    
    - name: Get Instance
      vultr.cloud.instance_info:
        name: fra
      register: results
    
    - debug:
        var: results

    Additional context

A pull request should be linked to this issue to fix this trivial bug