From 263cd68f5ae4b114d3c1c89f84be46b0f64f9c9e Mon Sep 17 00:00:00 2001 From: radhika Date: Thu, 29 Oct 2015 20:50:36 -0400 Subject: [PATCH] 7534: move the print statement of the token obtained out the library into script. --- services/api/lib/create_superuser_token.rb | 1 - services/api/script/create_superuser_token.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/services/api/lib/create_superuser_token.rb b/services/api/lib/create_superuser_token.rb index aea6dd082f..54faa9a0af 100755 --- a/services/api/lib/create_superuser_token.rb +++ b/services/api/lib/create_superuser_token.rb @@ -42,7 +42,6 @@ module CreateSuperUserToken end end - puts api_client_auth.api_token api_client_auth.api_token end end diff --git a/services/api/script/create_superuser_token.rb b/services/api/script/create_superuser_token.rb index dad9501dec..7a2682af46 100755 --- a/services/api/script/create_superuser_token.rb +++ b/services/api/script/create_superuser_token.rb @@ -11,5 +11,5 @@ include CreateSuperUserToken supplied_token = ARGV[0] -CreateSuperUserToken.create_superuser_token supplied_token - +token = CreateSuperUserToken.create_superuser_token supplied_token +puts token -- 2.30.2