Skip to content

Commit

Permalink
[openstack] Deal with Compute 'server details' returning null user_data
Browse files Browse the repository at this point in the history
  • Loading branch information
dhague committed Jul 14, 2015
1 parent 775739a commit 3c6a700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/openstack/models/compute/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def metadata=(new_metadata={})
end

def user_data=(ascii_userdata)
self.user_data_encoded = [ascii_userdata].pack('m')
self.user_data_encoded = [ascii_userdata].pack('m') if ascii_userdata
end

def destroy
Expand Down

0 comments on commit 3c6a700

Please sign in to comment.