re-add gcp_compute as a valid plugin name

commit ccbde5f93e introduced
a backwards-incompatible change which made ansible-inventory
no longer recognize `gcp_compute` as a valid package name.

This would break users who are use `gcp_compute` (instead of the
new `google.cloud.gcp_compute`). Accepting both until at least
a major version change.

fixes #536.
This commit is contained in:
Yusuke Tsutsumi 2022-12-21 17:11:22 +00:00 committed by Yusuke Tsutsumi
commit 0ed49af7df
5 changed files with 18 additions and 3 deletions

View file

@ -22,7 +22,7 @@ DOCUMENTATION = """
plugin:
description: token that ensures this is a source file for the 'gcp_compute' plugin.
required: True
choices: ['google.cloud.gcp_compute']
choices: ['google.cloud.gcp_compute', 'gcp_compute']
zones:
description: A list of regions in which to describe GCE instances.
If none provided, it defaults to all zones available to a given project.