Comment 2 for bug 1643739

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/400464
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=16be8bae3574b4ab331da7d66a3b1bac6737c19c
Submitter: Jenkins
Branch: master

commit 16be8bae3574b4ab331da7d66a3b1bac6737c19c
Author: huangtianhua <email address hidden>
Date: Mon Nov 21 16:09:50 2016 +0800

    Do not set the mime-type for userdata

    We set the mime-type to 'x-shellscript' for all
    single userdata when user_data_format='SOFTWARE_CONFIG',
    it's incorrect, for example, if user create a server
    with a cloud-config userdata, we will set the mime-type to
    'x-shellscript', then cloud-init will consume the userdata
    as a shellscript and fail to execute.

    This change will improve this by not setting the mime-type
    and letting cloud-init figure it out from the first line
    in the file.

    Closes-Bug: #1643739
    Change-Id: If026884a95c58bb81a0f04ab415909011b1a5414