Fixes for pep8 tests
Pep8 tests were failing due to an error in requirements.txt pep8 was specified as allowing from 1.5.7, with no minimum version. Flake8 however fails with versions >1.6. Added this requirement, and also fixed errors from pep8 tests Change-Id: I24cb0ff34d6a28a6932a8df1206add287aca1e29
This commit is contained in:
parent
c5c9a9d88e
commit
09b6a7cd8b
@ -10,7 +10,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
""" Popen wrapper to allow custom patching of subprocess.Popen."""
|
||||
"""Popen wrapper to allow custom patching of subprocess.Popen."""
|
||||
|
||||
import subprocess
|
||||
|
||||
|
@ -27,7 +27,7 @@ import sys
|
||||
import traceback
|
||||
|
||||
import ipaddress
|
||||
from novaclient.v1_1 import client
|
||||
import novaclient.v1_1
|
||||
from pythonwhois import shared
|
||||
import six
|
||||
|
||||
@ -128,12 +128,12 @@ def discover_host(address, config, interactive=False):
|
||||
|
||||
def find_nova_host(address, config):
|
||||
"""See if a nova instance has the supplied address."""
|
||||
nova = client.Client(config['username'],
|
||||
config['password'],
|
||||
config['tenant_id'],
|
||||
config['authurl'],
|
||||
region_name=config['region'],
|
||||
service_type="compute")
|
||||
nova = novaclient.v1_1.client.Client(config['username'],
|
||||
config['password'],
|
||||
config['tenant_id'],
|
||||
config['authurl'],
|
||||
region_name=config['region'],
|
||||
service_type="compute")
|
||||
for server in nova.servers.list():
|
||||
for network_addresses in six.itervalues(server.addresses):
|
||||
for ip_address in network_addresses:
|
||||
|
@ -8,7 +8,7 @@ flake8_docstrings>=0.2.0 # patched for py33
|
||||
fixtures>=0.3.14
|
||||
freezegun
|
||||
mock>=1.0
|
||||
pep8>=1.5.7
|
||||
pep8>=1.5.7,<1.6
|
||||
pep257>=0.3.2 # patched for py33
|
||||
sphinx>=1.2.2
|
||||
testrepository>=0.0.17
|
||||
|
Loading…
x
Reference in New Issue
Block a user