Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
user-discovery-bot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archives
user-discovery-bot
Commits
38ffa376
Commit
38ffa376
authored
Jan 8, 2022
by
Richard T. Carback III
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/release' into dev
parents
3f1ffda7
4b41e785
No related branches found
No related tags found
2 merge requests
!50
Revert "update deps"
,
!48
Release
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/params.go
+2
-2
2 additions, 2 deletions
cmd/params.go
cmd/root.go
+1
-1
1 addition, 1 deletion
cmd/root.go
with
3 additions
and
3 deletions
cmd/params.go
+
2
−
2
View file @
38ffa376
...
...
@@ -48,8 +48,8 @@ func InitParams(vip *viper.Viper) params.General {
// Only require proto user path if session does not exist
var
protoUserJson
[]
byte
protoUserPath
:=
""
if
sessionPath
==
""
{
jww
.
INFO
.
Printf
(
"Session file-path was not specified, attempting to load proto client file..."
)
if
sessionPath
==
""
||
!
utils
.
Exists
(
sessionPath
)
{
jww
.
INFO
.
Printf
(
"Session file-path was not specified
or does not exist
, attempting to load proto client file..."
)
protoUserPath
,
err
=
utils
.
ExpandPath
(
viper
.
GetString
(
"protoUserPath"
))
if
err
!=
nil
{
jww
.
FATAL
.
Fatalf
(
"Failed to read proto path: %+v"
,
err
)
...
...
This diff is collapsed.
Click to expand it.
cmd/root.go
+
1
−
1
View file @
38ffa376
...
...
@@ -104,7 +104,7 @@ var rootCmd = &cobra.Command{
// Pass NDF directly into client library
var
client
*
api
.
Client
if
p
.
SessionPath
!=
""
{
if
p
.
SessionPath
!=
""
&&
utils
.
Exists
(
p
.
SessionPath
)
{
client
,
err
=
api
.
LoginWithNewBaseNDF_UNSAFE
(
p
.
SessionPath
,
[]
byte
(
sessionPass
),
string
(
returnedNdf
.
GetNdf
()),
params
.
GetDefaultNetwork
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment