Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure rm virtualmachineimage info latest #617

Conversation

nbr23
Copy link
Contributor

@nbr23 nbr23 commented Aug 27, 2021

SUMMARY

Add support of version: latest in azure_rm_virtualmachineimage_info

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • azure_rm_virtualmachineimage_info
ADDITIONAL INFORMATION

Add support to get information about the latest version of a virtualmachine image, as below:

    - name: Get facts for a specific image's latest version
      azure_rm_virtualmachineimage_info:
        location: "{{ location }}"
        publisher: OpenLogic
        offer: CentOS
        sku: '7.5'
        version: 'latest'
      register: output

A new test case has been added to validate, and ran successfully locally.

Cheers!

@Fred-sun Fred-sun added enhancement New feature or request medium_priority Medium priority work in In trying to solve, or in working with contributors labels Aug 27, 2021
@Fred-sun Fred-sun added ready_for_review The PR has been modified and can be reviewed and merged and removed work in In trying to solve, or in working with contributors labels Aug 30, 2021
@xuzhang3
Copy link
Collaborator

LGTM

@xuzhang3 xuzhang3 merged commit e93565b into ansible-collections:dev Aug 31, 2021
@nbr23 nbr23 deleted the azure_rm_virtualmachineimage_info_latest branch August 31, 2021 13:05
nbr23 added a commit to nbr23/azure that referenced this pull request Oct 26, 2021
* virtualmachineimage_info: add support for version="latest"

* Add test case for latest in virtualmachineimage_info

* Fix visual indent in virtualmachineimage_info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium_priority Medium priority ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants