From c2f4c09c21fa4dde3d3d70b4a09c8ae30ca21987 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 17 Mar 2013 11:52:48 -0400 Subject: [PATCH] Name should be the primary attribute for the 'parent' in the bzr module. --- bzr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bzr b/bzr index 5bd34e47fb5..2d6a22d9212 100644 --- a/bzr +++ b/bzr @@ -51,7 +51,7 @@ options: - If C(yes), any modified files in the working tree will be discarded. examples: - - code: "bzr parent=bzr+ssh://foosball.example.org/path/to/branch dest=/srv/checkout version=22" + - code: "bzr name=bzr+ssh://foosball.example.org/path/to/branch dest=/srv/checkout version=22" description: Example bzr checkout from Ansible Playbooks ''' @@ -124,14 +124,14 @@ def main(): module = AnsibleModule( argument_spec = dict( dest=dict(required=True), - parent=dict(required=True, aliases=['name']), + name=dict(required=True, aliases=['parent']), version=dict(default='head'), force=dict(default='yes', type='bool') ) ) dest = os.path.abspath(os.path.expanduser(module.params['dest'])) - parent = module.params['parent'] + parent = module.params['name'] version = module.params['version'] force = module.params['force']