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
556593bb
Commit
556593bb
authored
Aug 13, 2012
by
Derek Carter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed missing module argument for mount module
parent
2adff56e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
library/mount
+5
-5
No files found.
library/mount
View file @
556593bb
...
...
@@ -215,13 +215,13 @@ def main():
if
os
.
path
.
ismount
(
name
):
res
,
msg
=
umount
(
**
args
)
if
res
:
fail_json
(
msg
=
"Error unmounting
%
s:
%
s"
%
(
name
,
msg
))
module
.
fail_json
(
msg
=
"Error unmounting
%
s:
%
s"
%
(
name
,
msg
))
if
os
.
path
.
exists
(
name
):
try
:
os
.
rmdir
(
name
)
except
(
OSError
,
IOError
),
e
:
fail_json
(
msg
=
"Error rmdir
%
s:
%
s"
%
(
name
,
str
(
e
)))
module
.
fail_json
(
msg
=
"Error rmdir
%
s:
%
s"
%
(
name
,
str
(
e
)))
module
.
exit_json
(
changed
=
changed
,
**
args
)
...
...
@@ -229,7 +229,7 @@ def main():
if
os
.
path
.
ismount
(
name
):
res
,
msg
=
umount
(
**
args
)
if
res
:
fail_json
(
msg
=
"Error unmounting
%
s:
%
s"
%
(
name
,
msg
))
module
.
fail_json
(
msg
=
"Error unmounting
%
s:
%
s"
%
(
name
,
msg
))
changed
=
True
module
.
exit_json
(
changed
=
changed
,
**
args
)
...
...
@@ -241,7 +241,7 @@ def main():
try
:
os
.
makedirs
(
name
)
except
(
OSError
,
IOError
),
e
:
fail_json
(
msg
=
"Error making dir
%
s:
%
s"
%
(
name
,
str
(
e
)))
module
.
fail_json
(
msg
=
"Error making dir
%
s:
%
s"
%
(
name
,
str
(
e
)))
res
=
0
if
os
.
path
.
ismount
(
name
):
...
...
@@ -252,7 +252,7 @@ def main():
res
,
msg
=
mount
(
**
args
)
if
res
:
fail_json
(
msg
=
"Error mounting
%
s:
%
s"
%
(
name
,
msg
))
module
.
fail_json
(
msg
=
"Error mounting
%
s:
%
s"
%
(
name
,
msg
))
module
.
exit_json
(
changed
=
changed
,
**
args
)
...
...
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