Adjust booleans in source control modules. (#5158)

This commit is contained in:
Felix Fontein 2022-08-24 19:59:56 +02:00 committed by GitHub
parent 35a283918a
commit 675bdef190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 68 additions and 68 deletions

View file

@ -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):