Commit Graph

31 Commits (9da4c426798657a3c266dcd778c3e3c327f7fbdb)

Author SHA1 Message Date
codemeup @ Work 7314cc3867 Fixing error exception handling for python3. Does not need to be compa… (#3840)
* Fixing error exception handling for python. Does not need to be compatible with Python2.4 b/c boto is Python 2.6 and above.

* Fixing error exception handling for python. Does not need to be compatible with Python2.4 b/c boto is Python 2.6 and above.

* Fixing compile time errors IRT error exception handling for Python 3.5.
This does not need to be compatible with Python2.4 b/c Boto is Python 2.6 and above.
9 years ago
Matt Martz c7845456a6 Various simple linting type cleanups on modules 9 years ago
Brian Coca 18bad1f691 tabs are bad 9 years ago
Brian Coca 618f74f35f added version_added 9 years ago
Constantin07 56fa475dcb Added delete_on_termination option for volume attachment 9 years ago
Michel Alexandre Salim 18f4f5dcc6 Set the argument type for ec2_vol's encrypted parameter
If this is not set, Ansible parses the parameter as a string.
This is fine if the parameter is not provided by the caller, but
if it is set to False or True explicitly, ec2_vol receives this as
the string 'False' or the string 'True', both of which are truthy.

Thus, without this fix, setting the parameter results in encryption
always enabled.
9 years ago
Toshio Kuratomi cd9a7667aa Don't raise or catch StandardError in amazon modules 9 years ago
Rob 3360cef024 Update ec2_vol.py
Changed=true now reported on new volume.
Only detach volume when instance is specified as 'None' or '' rather than whenever instance is not specified at all
Fix regression caused by 6b27cdc where by no volume is created if id or Name is not supplied
Remove unnecessary empty aliases
Corrected example to use acceptable parameter for ions
Added exception handling to get_all_instances call
Moved the attachment state validation code to attach_volume function rather than create_volume function
Refactored attach_volume and detach_volume so that changed state can be passed back to call
Created get_volume_info function so that state=present and state=list can return the same data.  Also added instance_id as a returned value in attachment_set dict
Updated aws connection method so that boto profile can be used
9 years ago
Brian Coca 6f9ff0b914 Merge pull request #2248 from Constantin07/devel
ec2_vol: added deleteOnTermination in the output of list option
9 years ago
Constantin Bugneac 83291dbefc Added deleteOnTermination in the output of list option 9 years ago
Brian Coca c4f64d822c changed modules to use common ec2 docs for region 9 years ago
David M. Lee 6a8108133d ec2_vol: Added missing "needs 2.0" doc
The ability to find-or-create a volume was added in 2.0. Added note to
the example.
9 years ago
Jaime Gago 1f62f5f580 Fix example indentation bug 9 years ago
Eero Niemi 3533f39534 Fixed parameter validation when creating a volume from a snapshot 9 years ago
Brian Coca dddb8f9df1 Merge pull request #1548 from freshbooks/ec2_vol_example_fixes
Indentation fix for with and register in the ec2_vol example
10 years ago
Colin Hutchinson 96d2c09457 Indentation fix for with and register in the ec2_vol example 10 years ago
Benno Joy 8a998ae76f Merge pull request #1465 from hkariti/ec2_vol_delete_race_condition
ec2_vol: fix race condition when deleting a volume
10 years ago
Greg DeKoenigsberg 28a869a030 Updating cloud modules with proper github author information 10 years ago
Hagai Kariti fb4732fad2 ec2_vol: fix race conditions because we handle errors before actually deleting
Just try to delete the volume and handle the error amazon sends
10 years ago
Jell 6b27cdc08e [ec2_vol] Find or Create volume by name 10 years ago
Daekwon Kim 7684059044 Fix indent of "register" key 10 years ago
Daekwon Kim 88639ae8be Fix typo (volue -> volume) 10 years ago
steenzout d960dc1584 issue #994: use HAS_BOTO to determine if import was successful:
- removed import of sys module.
- HAS_BOTO constant to check if import was successful.
- trigger a failure when import fails.
- removed unnecessary imports.
10 years ago
Brian Coca 53ef859ae4 fix instance=None documentation 10 years ago
Brian Coca 0794597c7e corrected release when this feature was added 10 years ago
Philip Misiowiec ad7f5abf28 Ability to detach an EBS volume from an EC2 instance 10 years ago
Brian Coca 8e5a849c66 Merge pull request #3 from atlashealth/ec2_vol_ssd_ebs
Ability to specify new SSD EBS option
10 years ago
Michael DeHaan e7c92a6bc6 More EC2 doc tweaks 10 years ago
Philip Misiowiec c241e9dd9c added version 10 years ago
Philip Misiowiec b37a2328c0 Ability to specify new SSD EBS option 10 years ago
Brian Coca 0c4adcb2c6 made subcategories for cloud modules for better organization 10 years ago