lib/wbem.rb in wbem-0.2.6 vs lib/wbem.rb in wbem-0.2.8
- old
+ new
@@ -39,16 +39,16 @@
protocol_given = uri.match(/:\d/)
else
u = uri
protocol_given = uri.port
end
- case protocol.to_sym
- when :wsman
+ case protocol.to_s
+ when "wsman"
unless protocol_given
u.port = (u.scheme == "http") ? 5985 : 5986
end
return WsmanClient.new u, auth_scheme
- when :cimxml
+ when "cimxml"
unless protocol_given
u.port = (u.scheme == "http") ? 5988 : 5989
end
return CimxmlClient.new u
end