From d88164b7a4f4425109656706ffa92a1b06ea32c5 Mon Sep 17 00:00:00 2001 From: Ahmad Musa <53178237+ahmadiesa-abu@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:16:39 +0200 Subject: [PATCH] NE-23979-Handle-inspect-py311 (#437) --- CHANGELOG.txt | 1 + openstack_plugin/__version__.py | 2 +- openstack_plugin/utils.py | 2 ++ plugin.yaml | 2 +- plugin_1_4.yaml | 2 +- plugin_1_5.yaml | 2 +- v2_plugin.yaml | 2 +- 7 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4ab7a1b8..d2ac68d4 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,4 @@ +3.3.8: handle inspect deprecation for py311. 3.3.7: update requirements.txt. 3.3.6: Support Python 3.11 and discontinue 3.6. 3.3.5: add extra_specs and tenant access to flavor type. diff --git a/openstack_plugin/__version__.py b/openstack_plugin/__version__.py index 291065b7..75285537 100644 --- a/openstack_plugin/__version__.py +++ b/openstack_plugin/__version__.py @@ -1 +1 @@ -version = '3.3.7' +version = '3.3.8' diff --git a/openstack_plugin/utils.py b/openstack_plugin/utils.py index 2b1258b5..fc9fd4f0 100644 --- a/openstack_plugin/utils.py +++ b/openstack_plugin/utils.py @@ -748,6 +748,8 @@ def use_external_resource(_ctx, # Check if we need to run custom operation for already existed # resource for operation task if existing_resource_handler: + if not hasattr(inspect, 'getargspec'): + inspect.getargspec = inspect.getfullargspec # We may need to send the "openstack_resource" to the # existing resource handler and in order to do that we may # need to check if the resource is already there or not diff --git a/plugin.yaml b/plugin.yaml index 02431d32..8c0eedcb 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -3,7 +3,7 @@ plugins: openstack: executor: central_deployment_agent package_name: cloudify-openstack-plugin - package_version: 3.3.7 + package_version: 3.3.8 dsl_definitions: diff --git a/plugin_1_4.yaml b/plugin_1_4.yaml index 2966b5c8..f58952e0 100644 --- a/plugin_1_4.yaml +++ b/plugin_1_4.yaml @@ -3,7 +3,7 @@ plugins: openstack: executor: central_deployment_agent package_name: cloudify-openstack-plugin - package_version: 3.3.7 + package_version: 3.3.8 dsl_definitions: diff --git a/plugin_1_5.yaml b/plugin_1_5.yaml index 2966b5c8..f58952e0 100644 --- a/plugin_1_5.yaml +++ b/plugin_1_5.yaml @@ -3,7 +3,7 @@ plugins: openstack: executor: central_deployment_agent package_name: cloudify-openstack-plugin - package_version: 3.3.7 + package_version: 3.3.8 dsl_definitions: diff --git a/v2_plugin.yaml b/v2_plugin.yaml index 2966b5c8..f58952e0 100644 --- a/v2_plugin.yaml +++ b/v2_plugin.yaml @@ -3,7 +3,7 @@ plugins: openstack: executor: central_deployment_agent package_name: cloudify-openstack-plugin - package_version: 3.3.7 + package_version: 3.3.8 dsl_definitions: