Thanks for the bug report. I put a PR up at https://github.com/canonical/cloud-init/pull/922/files .
I didn't include the try/except because this has been supported/deprecated since 3.3, and cloud-init supports back to 3.5
Thanks for the bug report. I put a PR up at https:/ /github. com/canonical/ cloud-init/ pull/922/ files .
I didn't include the try/except because this has been supported/ deprecated since 3.3, and cloud-init supports back to 3.5