Skip to content

Commit

Permalink
Update issues with nsxt plugin and bump to 0.2.2 version (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabuaisha authored Aug 24, 2020
1 parent 67ad71f commit a95caf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions nsx_t_plugin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from cloudify.constants import NODE_INSTANCE, RELATIONSHIP_INSTANCE

from nsx_t_sdk.exceptions import NSXTSDKException
from nsx_t_sdk._compat import text_type
from nsx_t_plugin.constants import (
DELETE_OPERATION,
CREATE_OPERATION,
Expand Down Expand Up @@ -173,8 +172,7 @@ def validate_if_resource_started(
"""
resource_state = nsx_t_state.get()
state = getattr(resource_state, nsx_t_state.state_attr, 'state')
if not isinstance(state, text_type):
state = state.state
state = state.state if hasattr(state, 'state') else state
if state in pending_states:
raise OperationRetry(
'{0} state '
Expand Down
6 changes: 3 additions & 3 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
plugins:
nsx-t:
package_name: cloudify-nsx-t-plugin
source: https://github.com/Cloudify-PS/cloudify-nsx-t-plugin/archive/0.2.1.zip
package_version: '0.2.1'
source: https://github.com/Cloudify-PS/cloudify-nsx-t-plugin/archive/0.2.2.zip
package_version: '0.2.2'
executor: central_deployment_agent

dsl_definitions:
Expand All @@ -29,7 +29,7 @@ dsl_definitions:
required: true

id: &data_type_id
display_name:
id:
description: >
ID for nsxt resource.
type: string
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

setup(
name='cloudify-nsx-t-plugin',
version='0.2.1',
version='0.2.2',
author='Cloudify Platform Ltd.',
author_email='[email protected]',
license='LICENSE',
Expand Down

0 comments on commit a95caf7

Please sign in to comment.