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
3127bab6
Commit
3127bab6
authored
May 30, 2013
by
Stephen Fromm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use get_bin_path to find mkfs command (issue #2983)
parent
0c03a5cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
library/system/filesystem
+3
-2
No files found.
library/system/filesystem
View file @
3127bab6
...
@@ -88,11 +88,12 @@ def main():
...
@@ -88,11 +88,12 @@ def main():
if
module
.
check_mode
:
if
module
.
check_mode
:
changed
=
True
changed
=
True
else
:
else
:
mkfs
=
module
.
get_bin_path
(
'mkfs'
,
required
=
True
)
cmd
=
None
cmd
=
None
if
opts
is
None
:
if
opts
is
None
:
cmd
=
"
mkfs -t
%
s '
%
s'"
%
(
fstype
,
dev
)
cmd
=
"
%
s -t
%
s '
%
s'"
%
(
mkfs
,
fstype
,
dev
)
else
:
else
:
cmd
=
"
mkfs -t
%
s
%
s '
%
s'"
%
(
fstype
,
opts
,
dev
)
cmd
=
"
%
s -t
%
s
%
s '
%
s'"
%
(
mkfs
,
fstype
,
opts
,
dev
)
rc
,
_
,
err
=
module
.
run_command
(
cmd
)
rc
,
_
,
err
=
module
.
run_command
(
cmd
)
if
rc
==
0
:
if
rc
==
0
:
changed
=
True
changed
=
True
...
...
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