
openstacksdk's create_server() [1] takes cloud-init userdata as a plaintext string (or other data types [2]) via argument 'userdata', not 'user_data' [3]. This is 'userdata' argument of create_server() is different from the 'user_data' value which is returned [4]. The latter is base64 decoded, while the former is e.g. a plaintext string. As a (tiny) visual indicator for this difference, this patch reverts the module parameter 'user_data' to 'userdata' which was used before this module got refactored [5]. [1]57fbb72e32/openstack/cloud/_compute.py (L678)
[2]57fbb72e32/openstack/cloud/_compute.py (L1757)
[3]57fbb72e32/openstack/cloud/_compute.py (L796)
[4]57fbb72e32/openstack/compute/v2/server.py (L223)
[5]ac401bb354
Change-Id: I1f3b9314e4d82674cd2ae45f6209de5611e2b6cb