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
b300bf40
Commit
b300bf40
authored
Jun 17, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7798 from koenpunt/npm-nvm-exec
Allow npm executable to contain spaces
parents
4be33b6a
2748095a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/packaging/npm
+3
-3
No files found.
library/packaging/npm
View file @
b300bf40
...
...
@@ -113,9 +113,9 @@ class Npm(object):
self
.
production
=
kwargs
[
'production'
]
if
kwargs
[
'executable'
]:
self
.
executable
=
kwargs
[
'executable'
]
self
.
executable
=
kwargs
[
'executable'
]
.
split
(
' '
)
else
:
self
.
executable
=
module
.
get_bin_path
(
'npm'
,
True
)
self
.
executable
=
[
module
.
get_bin_path
(
'npm'
,
True
)]
if
kwargs
[
'version'
]:
self
.
name_version
=
self
.
name
+
'@'
+
self
.
version
...
...
@@ -124,7 +124,7 @@ class Npm(object):
def
_exec
(
self
,
args
,
run_in_check_mode
=
False
,
check_rc
=
True
):
if
not
self
.
module
.
check_mode
or
(
self
.
module
.
check_mode
and
run_in_check_mode
):
cmd
=
[
self
.
executable
]
+
args
cmd
=
self
.
executable
+
args
if
self
.
glbl
:
cmd
.
append
(
'--global'
)
...
...
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