From 487c826700ebaa54f9ecf6d1f2409345b330fdfe Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 28 Jul 2012 09:22:13 -0400 Subject: [PATCH] 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. --- library/virt | 2 +- library/yum | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/virt b/library/virt index ffa57c76b9..80c28c56ce 100755 --- a/library/virt +++ b/library/virt @@ -386,7 +386,7 @@ def main(): params[k] = v state = params.get('state', None) - guest = params.get('guest', None) + guest = params.get('guest', params.get('name', None)) command = params.get('command', None) options = params.get('options', []) diff --git a/library/yum b/library/yum index 86f5838b93..ac5adaf892 100755 --- a/library/yum +++ b/library/yum @@ -277,7 +277,7 @@ def main(): module = AnsibleModule( argument_spec = dict( - pkg=dict(aliases=['name']), + pkg=dict(aliases=['name','package']), # removed==absent, installed==present, these are accepted as aliases state=dict(default='installed', choices=['absent','present','installed','removed','latest']), list=dict(choices=['installed','updates','available','repos','pkgspec']),