Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
server
Commits
06630aa4
Commit
06630aa4
authored
Aug 24, 2020
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fix missing salt on restart
parent
9859a7d3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/conf/params.go
+3
-5
3 additions, 5 deletions
cmd/conf/params.go
with
3 additions
and
5 deletions
cmd/conf/params.go
+
3
−
5
View file @
06630aa4
...
...
@@ -239,12 +239,10 @@ func (p *Params) ConvertToDefinition() (*internal.Definition, error) {
// Check if the IDF exists
if
p
.
Node
.
Paths
.
Idf
!=
""
&&
utils
.
Exists
(
p
.
Node
.
Paths
.
Idf
)
{
// If the IDF exists, then get the ID and save it
_
,
new
ID
,
err
2
:
=
idf
.
UnloadIDF
(
p
.
Node
.
Paths
.
Idf
)
if
err
2
!=
nil
{
return
nil
,
errors
.
Errorf
(
"Could not unload IDF: %+v"
,
err
2
)
def
.
Salt
,
def
.
ID
,
err
=
idf
.
UnloadIDF
(
p
.
Node
.
Paths
.
Idf
)
if
err
!=
nil
{
return
nil
,
errors
.
Errorf
(
"Could not unload IDF: %+v"
,
err
)
}
def
.
ID
=
newID
}
else
{
// If the IDF does not exist, then generate a new ID, save it to an IDF,
// and save the ID to the definition
...
...
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