mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
openbsd_pkg: some whitespace cleanup.
This commit is contained in:
parent
af52cd6ec1
commit
1b08da26fd
1 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@ EXAMPLES = '''
|
||||||
# select whether we dump additional debug info through syslog
|
# select whether we dump additional debug info through syslog
|
||||||
syslogging = False
|
syslogging = False
|
||||||
|
|
||||||
# Function used for executing commands.
|
# Function used for executing commands.
|
||||||
def execute_command(cmd, syslogging):
|
def execute_command(cmd, syslogging):
|
||||||
if syslogging:
|
if syslogging:
|
||||||
syslog.openlog('ansible-%s' % os.path.basename(__file__))
|
syslog.openlog('ansible-%s' % os.path.basename(__file__))
|
||||||
|
@ -115,13 +115,13 @@ def package_present(name, installed_state, specific_version, module):
|
||||||
|
|
||||||
# The behaviour of pkg_add is a bit different depending on if a
|
# The behaviour of pkg_add is a bit different depending on if a
|
||||||
# specific version is supplied or not.
|
# specific version is supplied or not.
|
||||||
#
|
#
|
||||||
# When a specific version is supplied the return code will be 0 when
|
# When a specific version is supplied the return code will be 0 when
|
||||||
# a package is found and 1 when it is not, if a version is not
|
# a package is found and 1 when it is not, if a version is not
|
||||||
# supplied the tool will exit 0 in both cases:
|
# supplied the tool will exit 0 in both cases:
|
||||||
if specific_version:
|
if specific_version:
|
||||||
# Depend on the return code.
|
# Depend on the return code.
|
||||||
if rc:
|
if rc:
|
||||||
changed=False
|
changed=False
|
||||||
else:
|
else:
|
||||||
# Depend on stderr instead.
|
# Depend on stderr instead.
|
||||||
|
@ -158,7 +158,7 @@ def package_present(name, installed_state, specific_version, module):
|
||||||
def package_latest(name, installed_state, specific_version, module):
|
def package_latest(name, installed_state, specific_version, module):
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
upgrade_cmd = 'pkg_add -umn'
|
upgrade_cmd = 'pkg_add -umn'
|
||||||
else:
|
else:
|
||||||
upgrade_cmd = 'pkg_add -um'
|
upgrade_cmd = 'pkg_add -um'
|
||||||
|
|
||||||
pre_upgrade_name = ''
|
pre_upgrade_name = ''
|
||||||
|
|
Loading…
Reference in a new issue