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
060266e2
Commit
060266e2
authored
Jan 10, 2013
by
Daniel Hokka Zakrisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 2.4 fixes for modules
parent
3bc6228b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
library/mysql_db
+1
-1
library/user
+2
-2
No files found.
library/mysql_db
View file @
060266e2
...
...
@@ -182,7 +182,7 @@ def main():
if
state
in
[
'dump'
,
'import'
]:
if
target
is
None
:
module
.
fail_json
(
msg
=
"with state=
{0} target is required"
.
format
(
state
))
module
.
fail_json
(
msg
=
"with state=
%
s target is required"
%
(
state
))
connect_to_db
=
db
else
:
connect_to_db
=
'mysql'
...
...
library/user
View file @
060266e2
...
...
@@ -718,7 +718,7 @@ class SunOS(User):
continue
fields
[
1
]
=
self
.
password
line
=
':'
.
join
(
fields
)
lines
.
append
(
'
{0}
\n
'
.
format
(
line
)
)
lines
.
append
(
'
%
s
\n
'
%
line
)
open
(
self
.
SHADOWFILE
,
'w+'
)
.
writelines
(
lines
)
except
Exception
,
err
:
self
.
module
.
fail_json
(
msg
=
"failed to update users password:
%
s"
%
str
(
err
))
...
...
@@ -800,7 +800,7 @@ class SunOS(User):
continue
fields
[
1
]
=
self
.
password
line
=
':'
.
join
(
fields
)
lines
.
append
(
'
{0}
\n
'
.
format
(
line
)
)
lines
.
append
(
'
%
s
\n
'
%
line
)
open
(
self
.
SHADOWFILE
,
'w+'
)
.
writelines
(
lines
)
rc
=
0
except
Exception
,
err
:
...
...
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