Use container path directly, instead of hiding it behind a method
This commit is contained in:
parent
6b7bb8144e
commit
90a6753d88
@ -386,7 +386,7 @@ module RemoteStorage
|
|||||||
if container_migration(user)
|
if container_migration(user)
|
||||||
"#{base_url}/rs:#{settings.environment.to_s.chars.first}:#{user}"
|
"#{base_url}/rs:#{settings.environment.to_s.chars.first}:#{user}"
|
||||||
else
|
else
|
||||||
"#{base_url}/#{container_for(user)}"
|
"#{base_url}/rs:documents:#{settings.environment.to_s}/#{user}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -398,10 +398,6 @@ module RemoteStorage
|
|||||||
@base_url ||= settings.swift["host"]
|
@base_url ||= settings.swift["host"]
|
||||||
end
|
end
|
||||||
|
|
||||||
def container_for(user)
|
|
||||||
"rs:documents:#{settings.environment.to_s}/#{user}"
|
|
||||||
end
|
|
||||||
|
|
||||||
def container_migration(user)
|
def container_migration(user)
|
||||||
redis.get("rs:container_migration:#{user}")
|
redis.get("rs:container_migration:#{user}")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user