mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 09:36:08 +08:00
Merge pull request #578 from gravitl/bugfix_v0.9.3_default_postdown
fixed setting default node postdown
This commit is contained in:
commit
504aecd3f7
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