mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Name should be the primary attribute for the 'parent' in the bzr module.
This commit is contained in:
parent
61c1616fe5
commit
1a5ac9d149
1 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ options:
|
||||||
- If C(yes), any modified files in the working
|
- If C(yes), any modified files in the working
|
||||||
tree will be discarded.
|
tree will be discarded.
|
||||||
examples:
|
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
|
description: Example bzr checkout from Ansible Playbooks
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -124,14 +124,14 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
dest=dict(required=True),
|
dest=dict(required=True),
|
||||||
parent=dict(required=True, aliases=['name']),
|
name=dict(required=True, aliases=['parent']),
|
||||||
version=dict(default='head'),
|
version=dict(default='head'),
|
||||||
force=dict(default='yes', type='bool')
|
force=dict(default='yes', type='bool')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
dest = os.path.abspath(os.path.expanduser(module.params['dest']))
|
dest = os.path.abspath(os.path.expanduser(module.params['dest']))
|
||||||
parent = module.params['parent']
|
parent = module.params['name']
|
||||||
version = module.params['version']
|
version = module.params['version']
|
||||||
force = module.params['force']
|
force = module.params['force']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue