Some formatting fixes so docs will build, etc.
This commit is contained in:
parent
e811f77716
commit
c651a8cf2e
1 changed files with 2 additions and 4 deletions
|
@ -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):
|
||||||
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:
|
||||||
|
|
Loading…
Reference in a new issue