Merge "Raise hacking to 2.x"
This commit is contained in:
commit
9ce51f9c58
|
@ -11,6 +11,7 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
import typing
|
||||
|
||||
from openstack._log import enable_logging # noqa
|
||||
import openstack.config
|
||||
|
@ -24,8 +25,8 @@ __all__ = [
|
|||
|
||||
def connect(
|
||||
cloud=None,
|
||||
app_name=None, # type: Optional[str]
|
||||
app_version=None, # type: Optional[str]
|
||||
app_name=None, # type: typing.Optional[str]
|
||||
app_version=None, # type: typing.Optional[str]
|
||||
options=None,
|
||||
load_yaml_config=True, # type: bool
|
||||
load_envvars=True, # type: bool
|
||||
|
|
|
@ -515,8 +515,8 @@ class Node(_common.ListMixin, resource.Resource):
|
|||
elif not abort_on_failed_state:
|
||||
return False
|
||||
|
||||
if (self.provision_state.endswith(' failed') or
|
||||
self.provision_state == 'error'):
|
||||
if (self.provision_state.endswith(' failed')
|
||||
or self.provision_state == 'error'):
|
||||
raise exceptions.ResourceFailure(
|
||||
"Node %(node)s reached failure state \"%(state)s\"; "
|
||||
"the last error is %(error)s" %
|
||||
|
|
|
@ -100,7 +100,7 @@ class DnsCloudMixin(_normalize.Normalizer):
|
|||
|
||||
try:
|
||||
return self.dns.create_zone(**zone)
|
||||
except exceptions.SDKException as e:
|
||||
except exceptions.SDKException:
|
||||
raise exc.OpenStackCloudException(
|
||||
"Unable to create zone {name}".format(name=name)
|
||||
)
|
||||
|
|
|
@ -3976,7 +3976,7 @@ class Proxy(proxy.Proxy):
|
|||
:param floating_ip: The value can be the ID of the Floating IP that the
|
||||
port forwarding belongs or a :class:`~openstack.
|
||||
network.v2.floating_ip.FloatingIP` instance.
|
||||
:param kwargs \*\*query: Optional query parameters to be sent to limit
|
||||
:param kwargs **query: Optional query parameters to be sent to limit
|
||||
the resources being returned.
|
||||
:returns: A generator of floating ip port forwarding objects
|
||||
:rtype: :class:`~openstack.network.v2.port_forwarding.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# The order of packages is significant, because pip processes them in the order
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
hacking>=1.0,<1.2 # Apache-2.0
|
||||
hacking>=2.0,<2.1.0 # Apache-2.0
|
||||
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
ddt>=1.0.1 # MIT
|
||||
|
|
|
@ -125,4 +125,5 @@ def _find_service_description_class(service_type):
|
|||
service_description_class = getattr(service_description_module, class_name)
|
||||
return service_description_class
|
||||
|
||||
|
||||
make_names()
|
||||
|
|
Loading…
Reference in New Issue