Don't warn about unsupported version with SDK-based commands
This doesn't make sense: SDK (and the server) will handle this for us. Change-Id: I31b84e09eca0dc2bc5316d6727620346ae519512 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Closes-bug: #2106760
This commit is contained in:
		| @@ -46,3 +46,8 @@ def build_option_parser(parser): | ||||
|         % DEFAULT_API_VERSION, | ||||
|     ) | ||||
|     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, | ||||
|     ) | ||||
|     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): | ||||
|     """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( | ||||
|         'Network client initialized using OpenStack SDK: %s', | ||||
|         instance.sdk_connection.network, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stephen Finucane
					Stephen Finucane