rackspace / gophercloud

A Go SDK for OpenStack. IN FEATURE FREEZE. See Issue #592
http://gophercloud.io
Other
456 stars 185 forks source link

Fixes problems with userdata on rackspace #642

Open gislifreyr opened 6 years ago

gislifreyr commented 6 years ago

When creating a server in the Rackspace public cloud the 'UserData' option does not do anything unless the 'ConfigDrive' option is set to 'true'. This commit fixes that problem by checking if the UserData option is non-empty and sets 'ConfigDrive' to 'true' if it is.

gislifreyr commented 6 years ago

My first time with Go so if this is not up to standards then please excuse me and guide me to a better fix if possible.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.006%) to 80.488% when pulling d9e04438ed98b93797fb62d21bef64ef9892a609 on gislifreyr:fix_rackspace_userdata into e00690e87603abe613e9f02c816c7c4bef82e063 on rackspace:master.