projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
10557: Tidy up some user setup code.
[arvados.git]
/
services
/
api
/
lib
/
create_superuser_token.rb
diff --git
a/services/api/lib/create_superuser_token.rb
b/services/api/lib/create_superuser_token.rb
index 84100c2efd16e407b1ef013e60bc0fa30b275cf1..da67a32c7918746fa7f363600671ac2e730cffd7 100755
(executable)
--- a/
services/api/lib/create_superuser_token.rb
+++ b/
services/api/lib/create_superuser_token.rb
@@
-26,7
+26,9
@@
module CreateSuperUserToken
# need to create a token
if !api_client_auth
# Get (or create) trusted api client
# need to create a token
if !api_client_auth
# Get (or create) trusted api client
- apiClient = ApiClient.find_or_create_by_url_prefix_and_is_trusted("ssh://root@localhost/", true)
+ apiClient = ApiClient.
+ find_or_create_by(url_prefix: "ssh://root@localhost/",
+ is_trusted: true)
# Check if there is an unexpired superuser token corresponding to this api client
api_client_auth =
# Check if there is an unexpired superuser token corresponding to this api client
api_client_auth =