ansible/cloud
Adam Williamson 64b8596250 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.
2015-10-13 22:33:46 -07:00
..
amazon Merge pull request #2248 from Constantin07/devel 2015-10-12 18:47:31 -04:00
azure ensure password or ssh cert specified 2015-07-09 13:33:46 -04:00
digital_ocean Fixed bug, when MX records pointed to ORIGIN(@) caused unintentional change of random A record. 2015-06-28 21:50:11 +02:00
docker fix #2043: strip empty dict from end of 'pull' stream 2015-10-13 22:33:46 -07:00
google Delete dead and broken code 2015-08-24 20:06:53 +02:00
linode Updating cloud modules with proper github author information 2015-06-15 14:41:22 -04:00
openstack doc fixes 2015-10-09 18:36:58 -04:00
rackspace added version added to new rax_cdb choices 2015-10-07 21:30:17 -04:00
vmware Merge pull request #1757 from gutoandreollo/devel 2015-09-14 15:08:47 -04:00
__init__.py package files 2014-09-26 11:05:47 -04:00