Skip to content

Commit

Permalink
Merge pull request #118 from cloudify-cosmo/2.0.21-build
Browse files Browse the repository at this point in the history
2.0.21 build
  • Loading branch information
EarthmanT authored Sep 14, 2023
2 parents 1397b63 + 0aa8d9b commit c084cce
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2.0.21: fix tasks to be compatible with py311.
2.0.20: Added Py311 wagon.
2.0.19: Fix issue that prevented user provided SSH port from being used.
2.0.18: add __version__.py file in fabric_plugin folder.
Expand Down
2 changes: 1 addition & 1 deletion fabric_plugin/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.0.20'
version = '2.0.21'
1 change: 1 addition & 0 deletions fabric_plugin/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import sys
PY2 = sys.version_info[0] == 2
PY311 = sys.version_info[0] == 3 and sys.version_info[1] == 11


if PY2:
Expand Down
12 changes: 11 additions & 1 deletion fabric_plugin/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,20 @@
from cloudify.utils import CFY_EXEC_TEMPDIR_ENVVAR as ENV_CFY_EXEC_TEMPDIR

from fabric_plugin import exec_env
from fabric_plugin._compat import exec_, StringIO
from fabric_plugin._compat import exec_, StringIO, PY311

from cloudify.proxy.client import ScriptException

# fix inspect compatiblity
import inspect
try:
# in python 3.11 getargspec was removed in favor of getfullargspec
if PY311:
from inspect import getfullargspec
inspect.getargspec = getfullargspec
except ImportError:
pass


ILLEGAL_CTX_OPERATION_ERROR = RuntimeError('ctx may only abort or return once')
DEFAULT_BASE_SUBDIR = 'cloudify-ctx'
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ plugins:
fabric:
executor: central_deployment_agent
package_name: cloudify-fabric-plugin
package_version: '2.0.20'
package_version: '2.0.21'
12 changes: 6 additions & 6 deletions plugin_1_4.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
##################################################################################
# Cloudify Fabric built in types and plugins definitions.
# Cloudify Fabric built in types and plugins definitions.
##################################################################################
plugins:
fabric:
executor: central_deployment_agent
package_name: cloudify-fabric-plugin
package_version: '2.0.20'
package_version: '2.0.21'

blueprint_labels:
obj-type:
values:
obj-type:
values:
- fabric

labels:
obj-type:
values:
obj-type:
values:
- fabric
10 changes: 5 additions & 5 deletions v2_plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ plugins:
fabric:
executor: central_deployment_agent
package_name: cloudify-fabric-plugin
package_version: '2.0.20'
package_version: '2.0.21'

blueprint_labels:
obj-type:
values:
obj-type:
values:
- fabric

labels:
obj-type:
values:
obj-type:
values:
- fabric

0 comments on commit c084cce

Please sign in to comment.