mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 00:24:37 +08:00
fixed setting default node postdown
This commit is contained in:
parent
c40ab51737
commit
9ded75d741
1 changed files with 4 additions and 0 deletions
|
@ -253,6 +253,10 @@ func SetNodeDefaults(node *models.Node) {
|
|||
postup := parentNetwork.DefaultPostUp
|
||||
node.PostUp = postup
|
||||
}
|
||||
if node.PostDown == "" {
|
||||
postdown := parentNetwork.DefaultPostDown
|
||||
node.PostDown = postdown
|
||||
}
|
||||
if node.IsStatic == "" {
|
||||
node.IsStatic = "no"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue