forked from ansible-collections/vmware.vmware_rest
-
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.
Merge pull request ansible-collections#439 from GomathiselviS/gha_fix
Cleanup tox.ini and GHA
- Loading branch information
Showing
151 changed files
with
1,278 additions
and
553 deletions.
There are no files selected for viewing
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,10 @@ | ||
--- | ||
profile: production | ||
|
||
exclude_paths: | ||
- tests/integration | ||
- tests/sanity | ||
- modules.yaml | ||
|
||
skip_list: | ||
- yaml[indentation] |
4 changes: 2 additions & 2 deletions
4
.github/workflows/changelog.yml → .github/workflows/changelog.yaml
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
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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
name: Linters | ||
concurrency: | ||
group: ${{ github.head_ref }} | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
branches: | ||
- main | ||
|
@@ -20,3 +18,10 @@ on: | |
jobs: | ||
linters: | ||
uses: ansible-network/github_actions/.github/workflows/tox-linters.yml@main | ||
ansible-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ansible-network/github_actions/.github/actions/checkout_dependency@main | ||
|
||
- name: Run ansible-lint | ||
uses: ansible/[email protected] |
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
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,6 @@ | ||
--- | ||
breaking_changes: | ||
- "Remove support for ansible-core < 2.14" | ||
trivial: | ||
- "Organize GitHub workflows" | ||
- "ansible-lint and isort fixes" |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
--- | ||
namespace: vmware | ||
name: vmware_rest | ||
readme: README.md | ||
version: null | ||
version: 3.0.0 | ||
authors: | ||
- Ansible (https://github.com/ansible) | ||
description: | ||
license: | ||
- Ansible (https://github.com/ansible) | ||
description: VMware collection for Ansible | ||
license_file: LICENSE | ||
tags: | ||
- cloud | ||
- vmware | ||
- virtualization | ||
- cloud | ||
- vmware | ||
- virtualization | ||
dependencies: | ||
cloud.common: '>=2.0.4,<3.0.0' | ||
cloud.common: ">=2.0.4,<3.0.0" | ||
repository: https://github.com/ansible-collections/vmware.vmware_rest.git | ||
homepage: https://github.com/ansible-collections/vmware.vmware_rest | ||
issues: https://github.com/ansible-collections/vmware.vmware_rest/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc | ||
build_ignore: | ||
- 'config/*' | ||
- config/* |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
requires_ansible: '>=2.9.10' | ||
requires_ansible: ">=2.14.0" |
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 |
---|---|---|
|
@@ -29,9 +29,9 @@ | |
- name: set connection info | ||
ansible.builtin.set_fact: | ||
connection_args: | ||
vcenter_hostname: "vcenter.test" | ||
vcenter_username: "[email protected]" | ||
vcenter_password: "1234" | ||
vcenter_hostname: "vcenter.test" | ||
vcenter_username: "[email protected]" | ||
vcenter_password: "1234" | ||
- name: lookup MoID of the object | ||
ansible.builtin.debug: msg="{{ lookup('vmware.vmware_rest.cluster_moid', '/my_dc/host/my_cluster', **connection_args) }}" | ||
|
@@ -49,13 +49,13 @@ | |
""" | ||
|
||
|
||
from ansible_collections.cloud.common.plugins.plugin_utils.turbo.lookup import ( | ||
TurboLookupBase as LookupBase, | ||
) | ||
from ansible_collections.vmware.vmware_rest.plugins.plugin_utils.lookup import ( | ||
Lookup, | ||
get_credentials, | ||
) | ||
from ansible_collections.cloud.common.plugins.plugin_utils.turbo.lookup import ( | ||
TurboLookupBase as LookupBase, | ||
) | ||
|
||
|
||
class LookupModule(LookupBase): | ||
|
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
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
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
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
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
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
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
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
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
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
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.