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
8342cc6b
Commit
8342cc6b
authored
Jul 22, 2015
by
Abhijit Menon-Sen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix existing typo, remove trailing space added by PR commit
parent
b05485d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hacking/test-module
+3
-3
No files found.
hacking/test-module
View file @
8342cc6b
...
...
@@ -26,7 +26,7 @@
# test-module -m ../library/commands/command -a "/bin/sleep 3"
# test-module -m ../library/system/service -a "name=httpd ensure=restarted"
# test-module -m ../library/system/service -a "name=httpd ensure=restarted" --debugger /usr/bin/pdb
# test-modul
r
-m ../library/file/lineinfile -a "dest=/etc/exports line='/srv/home hostname1(rw,sync)'" --check
# test-modul
e
-m ../library/file/lineinfile -a "dest=/etc/exports line='/srv/home hostname1(rw,sync)'" --check
# test-module -m ../library/commands/command -a "echo hello" -n -o "test_hello"
import
sys
...
...
@@ -69,7 +69,7 @@ def parse():
help
=
"run the module in check mode"
)
parser
.
add_option
(
'-n'
,
'--noexecute'
,
dest
=
'execute'
,
action
=
'store_false'
,
default
=
True
,
help
=
"do not run the resulting module"
)
parser
.
add_option
(
'-o'
,
'--output'
,
dest
=
'filename'
,
parser
.
add_option
(
'-o'
,
'--output'
,
dest
=
'filename'
,
help
=
"Filename for resulting module"
,
default
=
"~/.ansible_module_generated"
)
options
,
args
=
parser
.
parse_args
()
...
...
@@ -195,7 +195,7 @@ def main():
else
:
raise
Exception
(
"internal error, unexpected module style:
%
s"
%
module_style
)
if
options
.
execute
:
if
options
.
debugger
:
if
options
.
debugger
:
rundebug
(
options
.
debugger
,
modfile
,
argspath
)
else
:
runtest
(
modfile
,
argspath
)
...
...
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