Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container 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
elixxir
client
Commits
8149080d
Commit
8149080d
authored
Sep 3, 2021
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Register usernames."
This reverts commit
93f6c2a2
.
parent
93f6c2a2
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!23
Release
,
!18
Add remove user and add flag on command line for testing
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/ud.go
+1
-6
1 addition, 6 deletions
cmd/ud.go
with
1 addition
and
6 deletions
cmd/ud.go
+
1
−
6
View file @
8149080d
...
...
@@ -85,7 +85,6 @@ var udCmd = &cobra.Command{
jww
.
FATAL
.
Panicf
(
"Failed to create new UD manager: %+v"
,
err
)
}
var
newFacts
fact
.
FactList
userToRegister
:=
viper
.
GetString
(
"register"
)
if
userToRegister
!=
""
{
err
=
userDiscoveryMgr
.
Register
(
userToRegister
)
...
...
@@ -94,13 +93,9 @@ var udCmd = &cobra.Command{
userToRegister
,
err
.
Error
())
jww
.
FATAL
.
Panicf
(
"Failed to register user %s: %+v"
,
userToRegister
,
err
)
}
f
,
err
:=
fact
.
NewFact
(
fact
.
Username
,
userToRegister
)
if
err
!=
nil
{
jww
.
FATAL
.
Panicf
(
"Failed to create new fact: %+v"
,
err
)
}
newFacts
=
append
(
newFacts
,
f
)
}
var
newFacts
fact
.
FactList
phone
:=
viper
.
GetString
(
"addphone"
)
if
phone
!=
""
{
f
,
err
:=
fact
.
NewFact
(
fact
.
Phone
,
phone
)
...
...
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