Skip to content

Commit

Permalink
Merge pull request #367 from cloudify-cosmo/RD-28960-EBS-Fix
Browse files Browse the repository at this point in the history
fix issue introduced in last change
  • Loading branch information
EarthmanT authored Aug 1, 2021
2 parents 943a44e + 1af11e6 commit 7986951
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,5 @@
2.12.1:
- Support group deployment creation for 5.2.4.
- Support passing fn arguments to detach ebs.
2.12.2:
- Fix issue introduced in the detach ebs change.
12 changes: 8 additions & 4 deletions cloudify_aws/ec2/resources/ebs.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,14 @@ def _detach_ebs(iface, volume_id, **kwargs):
:param volume_id:
"""
deleted_params = {'VolumeId': volume_id}
deleted_params['Device'] = kwargs.get('Device')
deleted_params['Force'] = kwargs.get('Force')
deleted_params['InstanceId'] = kwargs.get('InstanceId')
deleted_params['DryRun'] = kwargs.get('DryRun')
if 'Device' in kwargs:
deleted_params['Device'] = kwargs['Device']
if 'Force' in kwargs:
deleted_params['Force'] = kwargs['Force']
if 'InstanceId' in kwargs:
deleted_params['InstanceId'] = kwargs['InstanceId']
if 'DryRun' in kwargs:
deleted_params['DryRun'] = kwargs['DryRun']
iface.delete(deleted_params)


Expand Down
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ plugins:

aws:
executor: central_deployment_agent
source: https://github.com/cloudify-cosmo/cloudify-aws-plugin/archive/2.12.1.zip
source: https://github.com/cloudify-cosmo/cloudify-aws-plugin/archive/2.12.2.zip
package_name: cloudify-aws-plugin
package_version: '2.12.1'
package_version: '2.12.2'

data_types:

Expand Down

0 comments on commit 7986951

Please sign in to comment.