Merge "Don't warn about unsupported version with SDK-based commands"
This commit is contained in:
@ -46,3 +46,8 @@ def build_option_parser(parser):
|
|||||||
% DEFAULT_API_VERSION,
|
% DEFAULT_API_VERSION,
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
def check_api_version(check_version):
|
||||||
|
# SDK supports auto-negotiation for us: always return True
|
||||||
|
return True
|
||||||
|
@ -46,3 +46,8 @@ def build_option_parser(parser):
|
|||||||
% DEFAULT_API_VERSION,
|
% DEFAULT_API_VERSION,
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
def check_api_version(check_version):
|
||||||
|
# SDK supports auto-negotiation for us: always return True
|
||||||
|
return True
|
||||||
|
@ -27,12 +27,6 @@ API_VERSIONS = ('2.0', '2')
|
|||||||
|
|
||||||
def make_client(instance):
|
def make_client(instance):
|
||||||
"""Returns a network proxy"""
|
"""Returns a network proxy"""
|
||||||
# NOTE(dtroyer): As of osc-lib 1.8.0 and OpenStackSDK 0.10.0 the
|
|
||||||
# old Profile interface and separate client creation
|
|
||||||
# for each API that uses the SDK is unnecessary. This
|
|
||||||
# callback remains as a remnant of the original plugin
|
|
||||||
# interface and to avoid the code churn of changing all
|
|
||||||
# of the existing references.
|
|
||||||
LOG.debug(
|
LOG.debug(
|
||||||
'Network client initialized using OpenStack SDK: %s',
|
'Network client initialized using OpenStack SDK: %s',
|
||||||
instance.sdk_connection.network,
|
instance.sdk_connection.network,
|
||||||
|
Reference in New Issue
Block a user