lib/uaa/misc.rb in cf-uaa-lib-1.3.9 vs lib/uaa/misc.rb in cf-uaa-lib-1.3.10
- old
+ new
@@ -67,10 +67,10 @@
# {http://localhost:8080/uaa}.
# @return [String] url of UAA (or the target itself if it didn't provide a response)
def self.discover_uaa(target)
info = server(target)
links = info['links'] || info[:links]
- uaa = links['uaa'] || links[:uaa]
+ uaa = links && (links['uaa'] || links[:uaa])
uaa || target
end
# Gets the key from the server that is used to validate token signatures. If