
cloud-init writes a result.json when finished[1]. When wait_for_cloud_init=true is provided, this change uses result.json to detect when cloud-init has finished, and raises an exception if it finished with errors. [1] http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/status.txt Change-Id: I7e0bcce733b008b488c8e1cf9bb74b5b6192cfbc