lib/mongo/cluster/app_metadata.rb in mongo-2.5.1 vs lib/mongo/cluster/app_metadata.rb in mongo-2.5.2
- old
+ new
@@ -50,10 +50,10 @@
#
# @param [ Mongo::Cluster ] cluster The cluster.
#
# @since 2.4.0
def initialize(cluster)
- @app_name = cluster.options[:app_name]
+ @app_name = cluster.options[:app_name].to_s if cluster.options[:app_name]
@platform = cluster.options[:platform]
@compressors = cluster.options[:compressors] || []
end
# Get the bytes of the ismaster message including this metadata.