mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Adjust booleans in source control modules. (#5158)
This commit is contained in:
parent
35a283918a
commit
675bdef190
14 changed files with 68 additions and 68 deletions
|
@ -22,12 +22,12 @@ options:
|
|||
description:
|
||||
- SSH or HTTP protocol address of the parent branch.
|
||||
aliases: [ parent ]
|
||||
required: yes
|
||||
required: true
|
||||
type: str
|
||||
dest:
|
||||
description:
|
||||
- Absolute path of where the branch should be cloned to.
|
||||
required: yes
|
||||
required: true
|
||||
type: path
|
||||
version:
|
||||
description:
|
||||
|
@ -37,11 +37,11 @@ options:
|
|||
type: str
|
||||
force:
|
||||
description:
|
||||
- If C(yes), any modified files in the working
|
||||
- If C(true), any modified files in the working
|
||||
tree will be discarded. Before 1.9 the default
|
||||
value was C(yes).
|
||||
value was C(true).
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: false
|
||||
executable:
|
||||
description:
|
||||
- Path to bzr executable to use. If not supplied,
|
||||
|
@ -112,7 +112,7 @@ class Bzr(object):
|
|||
tree since that commit.
|
||||
'''
|
||||
if not force and self.has_local_mods():
|
||||
self.module.fail_json(msg="Local modifications exist in branch (force=no).")
|
||||
self.module.fail_json(msg="Local modifications exist in branch (force=false).")
|
||||
return self._command(["revert"], check_rc=True, cwd=self.dest)
|
||||
|
||||
def fetch(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue