community.general/lib/ansible/modules/cloud
Adam Williamson 83d941da27 fix #2043: strip empty dict from end of 'pull' stream
When pulling an image using Docker 1.8, it seems the output
JSON stream has an empty dict at the very end. This causes
ansible to fail when pulling an image, as it's expecting a
status message in that dict which it uses to determine whether
it had to download the image or not. As a bit of an ugly hack
for that which remains backward compatible, try the last item
in the stream, and if it's an empty dict, take the last-but-one
item instead.

The strip() is needed as the exact value appears to be '{}/r/n';
we could just match that, but it seems like the kind of thing
where maybe it'd happen to just be '{}/n' or '{}' or something
in some cases, so let's just use strip() in case.
2016-12-08 11:23:40 -05:00
..
amazon Added deleteOnTermination in the output of list option 2016-12-08 11:23:40 -05:00
azure keep backwards compatibility 2016-12-08 11:23:39 -05:00
digital_ocean Fixed bug, when MX records pointed to ORIGIN(@) caused unintentional change of random A record. 2016-12-08 11:23:29 -05:00
docker fix #2043: strip empty dict from end of 'pull' stream 2016-12-08 11:23:40 -05:00
google Delete dead and broken code 2016-12-08 11:23:33 -05:00
linode Updating cloud modules with proper github author information 2016-12-08 11:23:07 -05:00
openstack doc fixes 2016-12-08 11:23:40 -05:00
rackspace added version added to new rax_cdb choices 2016-12-08 11:23:40 -05:00
vmware vm_floppy 2.0 support 2016-12-08 11:23:34 -05:00
__init__.py package files 2016-12-08 11:22:22 -05:00