openbsd_pkg: some whitespace cleanup.

reviewable/pr18780/r1
Patrik Lundin 12 years ago
parent 023711bb2c
commit 5f53229de2

@ -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…
Cancel
Save