lib/cts/mpx/service.rb in cts-mpx-1.0.1 vs lib/cts/mpx/service.rb in cts-mpx-1.0.2
- old
+ new
@@ -47,9 +47,10 @@
# Return a given url of a service, will look in the local registry
# @param [String] account_id long form account id (ownerId)
# @return [String] the url string or nil if none available
def url(account_id = 'urn:theplatform:auth:root')
+ account_id ||= 'urn:theplatform:auth:root'
Exceptions.raise_unless_account_id account_id
reg = Registry.domains[account_id]
return reg[name] if reg
nil
end