Skip to content

Commit

Permalink
Merge pull request #528 from ogrand/patch-1
Browse files Browse the repository at this point in the history
Delete newlines in base64 encoding
  • Loading branch information
geemus committed Jul 3, 2023
2 parents 2acbe94 + a7fa0ec commit afc5e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/openstack/compute/models/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def metadata=(new_metadata = {})
end

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

def destroy
Expand Down

0 comments on commit afc5e50

Please sign in to comment.