mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Tweak alias consistency a bit. 'package' has never been documented, but since it works, make it work in both places.
'name' is the preferred form. Similarly, take 'name' for the 'guest' argument to the 'virt' module.
This commit is contained in:
parent
4d9ecebc20
commit
487c826700
2 changed files with 2 additions and 2 deletions
|
@ -386,7 +386,7 @@ def main():
|
||||||
params[k] = v
|
params[k] = v
|
||||||
|
|
||||||
state = params.get('state', None)
|
state = params.get('state', None)
|
||||||
guest = params.get('guest', None)
|
guest = params.get('guest', params.get('name', None))
|
||||||
command = params.get('command', None)
|
command = params.get('command', None)
|
||||||
options = params.get('options', [])
|
options = params.get('options', [])
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ def main():
|
||||||
|
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
pkg=dict(aliases=['name']),
|
pkg=dict(aliases=['name','package']),
|
||||||
# removed==absent, installed==present, these are accepted as aliases
|
# removed==absent, installed==present, these are accepted as aliases
|
||||||
state=dict(default='installed', choices=['absent','present','installed','removed','latest']),
|
state=dict(default='installed', choices=['absent','present','installed','removed','latest']),
|
||||||
list=dict(choices=['installed','updates','available','repos','pkgspec']),
|
list=dict(choices=['installed','updates','available','repos','pkgspec']),
|
||||||
|
|
Loading…
Reference in a new issue