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.
Reviewed: https:/ /review. openstack. org/400464 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=16be8bae357 4b4ab331da7d66a 3b1bac6737c19c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 16be8bae3574b4a b331da7d66a3b1b ac6737c19c
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 format= 'SOFTWARE_ CONFIG' , shellscript' , then cloud-init will consume the userdata
single userdata when user_data_
it's incorrect, for example, if user create a server
with a cloud-config userdata, we will set the mime-type to
'x-
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 b81a0f04ab41590 9011b1a5414
Change-Id: If026884a95c58b