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
44e32cc4
Commit
44e32cc4
authored
May 29, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some formatting fixes so docs will build, etc.
parent
250bcaff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
lib/ansible/utils/module_docs.py
+1
-0
library/cloud/quantum_floating_ip_associate
+2
-4
No files found.
lib/ansible/utils/module_docs.py
View file @
44e32cc4
...
@@ -49,6 +49,7 @@ def get_docstring(filename, verbose=False):
...
@@ -49,6 +49,7 @@ def get_docstring(filename, verbose=False):
if
'EXAMPLES'
in
(
t
.
id
for
t
in
child
.
targets
):
if
'EXAMPLES'
in
(
t
.
id
for
t
in
child
.
targets
):
plainexamples
=
child
.
value
.
s
[
1
:]
# Skip first empty line
plainexamples
=
child
.
value
.
s
[
1
:]
# Skip first empty line
except
:
except
:
traceback
.
print_exc
()
# temp
if
verbose
==
True
:
if
verbose
==
True
:
traceback
.
print_exc
()
traceback
.
print_exc
()
print
"unable to parse
%
s"
%
filename
print
"unable to parse
%
s"
%
filename
...
...
library/cloud/quantum_floating_ip_associate
View file @
44e32cc4
...
@@ -22,7 +22,7 @@ try:
...
@@ -22,7 +22,7 @@ try:
from
keystoneclient.v2_0
import
client
as
ksclient
from
keystoneclient.v2_0
import
client
as
ksclient
import
time
import
time
except
ImportError
:
except
ImportError
:
print
(
"failed=True msg='glanceclient,novaclient and keystone client are required'"
)
print
"failed=True msg='glanceclient,novaclient and keystone client are required'"
DOCUMENTATION
=
'''
DOCUMENTATION
=
'''
---
---
...
@@ -130,9 +130,7 @@ def _get_server_state(module, nova):
...
@@ -130,9 +130,7 @@ def _get_server_state(module, nova):
return
server_info
,
server
return
server_info
,
server
def
_get_port_id
(
quantum
,
module
,
instance_id
):
def
_get_port_id
(
quantum
,
module
,
instance_id
):
kwargs
=
{
kwargs
=
dict
(
device_id
=
instance_id
)
device_id
': instance_id,
}
try
:
try
:
ports
=
quantum
.
list_ports
(
**
kwargs
)
ports
=
quantum
.
list_ports
(
**
kwargs
)
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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