Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
1b08da26
Commit
1b08da26
authored
Jul 10, 2013
by
Patrik Lundin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openbsd_pkg: some whitespace cleanup.
parent
af52cd6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
library/packaging/openbsd_pkg
+4
-4
No files found.
library/packaging/openbsd_pkg
View file @
1b08da26
...
...
@@ -56,7 +56,7 @@ EXAMPLES = '''
# select whether we dump additional debug info through syslog
syslogging
=
False
# Function used for executing commands.
# Function used for executing commands.
def
execute_command
(
cmd
,
syslogging
):
if
syslogging
:
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
# specific version is supplied or not.
#
#
# 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
# supplied the tool will exit 0 in both cases:
if
specific_version
:
# Depend on the return code.
if
rc
:
if
rc
:
changed
=
False
else
:
# 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
):
if
module
.
check_mode
:
upgrade_cmd
=
'pkg_add -umn'
else
:
else
:
upgrade_cmd
=
'pkg_add -um'
pre_upgrade_name
=
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment