ansible/library/cloud
Bryan Larsen bdbc963736 digital_ocean: don't run update_attr if wait=no
Sometimes when using digital_ocean with wait=no I get the error "No ip is found".  But with wait=no I wouldn't expect there to be any IP, that gets allocated later.   However, looking at the code, it turns out that with even with wait=no it waits up to 10 seconds for an IP to be allocated.  We could wait longer, but with wait=no that seems like the wrong choice; it's easy enough to grab an IP later with a wait=yes command.

To make this change I removed the call to update_attr in @classmethod add.  An add is always followed by an ensure_powered_on which will do the update_attr if wait=yes.   It would be possible to instead do a call to update_attr with no retries and ignore the errors but I figured it would be better to be consistently not return an IP than to sometimes return it and sometimes not.   Inconsistent behaviour makes debugging deployment scripts very difficult.
2013-07-11 13:30:42 -04:00
..
cloudformation Styling: misc pep8 2013-06-30 18:50:40 -04:00
digital_ocean digital_ocean: don't run update_attr if wait=no 2013-07-11 13:30:42 -04:00
ec2 Merge pull request #3293 from jarv/devel 2013-06-30 16:40:51 -07:00
ec2_elb Parameter and variable naming issues 2013-05-03 06:55:06 -04:00
ec2_facts Added a helpful example to the ec2_facts doc. 2013-05-15 16:32:35 +01:00
ec2_vol Docs: consistently format playbook EXAMPLES 2013-06-17 08:53:46 +02:00
glance_image Spelling fixes 2013-06-16 22:09:35 -04:00
keystone_user DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 2013-06-15 20:54:25 +02:00
linode Styling: semicolon 2013-06-30 18:53:22 -04:00
nova_compute DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 2013-06-15 20:54:25 +02:00
nova_keypair DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 2013-06-15 20:54:25 +02:00
quantum_floating_ip DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 2013-06-15 20:54:25 +02:00
quantum_floating_ip_associate Docs: consistently format playbook EXAMPLES 2013-06-17 08:53:46 +02:00
quantum_network Merge pull request #3204 from goozbach/devel 2013-06-16 20:16:14 -07:00
quantum_router Docs: consistently format playbook EXAMPLES 2013-06-17 08:53:46 +02:00
quantum_router_gateway DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 2013-06-15 20:54:25 +02:00
quantum_router_interface Fixed a few small typos 2013-06-18 12:26:40 -06:00
quantum_subnet Spelling fixes 2013-06-16 22:09:35 -04:00
rax Include identity_type required by Pyrax 1.4 2013-06-27 13:50:36 -05:00
rds Styling: indentation 2013-06-30 18:53:55 -04:00
s3 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 2013-06-15 20:54:25 +02:00
virt Docs: consistently format playbook EXAMPLES 2013-06-17 08:53:46 +02:00