Do not match subnets if no networks defined

Server will now skip looking for subnets on shared networks
if the server doesn't have any networks defined. Added tests
to verify existing behavior as well as to guard regression.

Change-Id: I81bc3bf753843f521ccb8a96b9a40a6f82ca8d92
Closes-Bug: #1380846
Put a cap on our cyclomatic complexity

flake8 has support for cyclomatic complexity (Mccabe) currently our
worst offender has a complexity of 28 (25 is considered very bad). So
set our max-complexity to 29 so we at least don't make things any worse.

This is the first step in bringing this number down to 20 or so.

https://github.com/flintwork/mccabe

Change-Id: Ic90093ab80d9d3e27c257ea1a5cc393e09ebc7ee
Catch correct exception for Cinder api version detection

Catch the EndpointNotFound exception raised by Keystone rather
than the one thrown by Cinder since keystoneclient raises keystone
exceptions and not cinder exceptions. Also update the fake
keystone client to mirror this behavior.

Change-Id: I9f4579cf55fc697470dd8803553d7968e22a6bec
Closes-Bug: #1382659
Add support_status to SoftwareDeployments

Change-Id: Icb468b4e3033ae28aa47045fdc18fdcd83f264dc
Closes-Bug: #1383064
Imported Translations from Transifex

Change-Id: I528b305a970abfa75d2a44c7a8787d09ac5602a5
Merge "Put a cap on our cyclomatic complexity"
Merge "Imported Translations from Transifex"
Merge "Do not match subnets if no networks defined"
Fix support status for OS::Heat::SoftwareComponent

Since SoftwareComponent is derived from SoftwareConfig, the support
status 2014.1 inherited from SoftwareConfig was incorrectly shown for
the SoftwareComponent resource.
This patch fixes the problem by correctly setting support_status in
the SoftwareComponent resource.

Change-Id: I973755f11e21ccb4f8bbc532da4de964e07c65f1
Don't shadow local variables "resource"

We could rename the local variables, but it's just as easy to not
use the resource module. Since the functions are not used, remove them.

Change-Id: I356fbe0042f24aba78fba5deebe7fa645a035d96
Merge "Catch correct exception for Cinder api version detection"
Merge "Add support_status to SoftwareDeployments"
Merge "Don't shadow local variables "resource""
Merge "Fix support status for OS::Heat::SoftwareComponent"