mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 10:11:08 +08:00
fixed setting default node postdown
This commit is contained in:
@@ -253,6 +253,10 @@ func SetNodeDefaults(node *models.Node) {
|
|||||||
postup := parentNetwork.DefaultPostUp
|
postup := parentNetwork.DefaultPostUp
|
||||||
node.PostUp = postup
|
node.PostUp = postup
|
||||||
}
|
}
|
||||||
|
if node.PostDown == "" {
|
||||||
|
postdown := parentNetwork.DefaultPostDown
|
||||||
|
node.PostDown = postdown
|
||||||
|
}
|
||||||
if node.IsStatic == "" {
|
if node.IsStatic == "" {
|
||||||
node.IsStatic = "no"
|
node.IsStatic = "no"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user