mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-10 07:05:28 +08:00
set ishub default was missing
This commit is contained in:
parent
6724e1226d
commit
e5ebe48e0b
2 changed files with 4 additions and 0 deletions
|
@ -403,6 +403,7 @@ func SetNodeDefaults(node *models.Node) {
|
|||
node.SetDefaultIsDocker()
|
||||
node.SetDefaultIsK8S()
|
||||
node.SetDefaultIsHub()
|
||||
node.SetDefaultIsHub()
|
||||
}
|
||||
|
||||
// GetRecordKey - get record key
|
||||
|
|
|
@ -390,6 +390,9 @@ func (newNode *Node) Fill(currentNode *Node) {
|
|||
if newNode.Version == "" {
|
||||
newNode.Version = currentNode.Version
|
||||
}
|
||||
if newNode.IsHub == "" {
|
||||
newNode.IsHub = currentNode.IsHub
|
||||
}
|
||||
}
|
||||
|
||||
// StringWithCharset - returns random string inside defined charset
|
||||
|
|
Loading…
Add table
Reference in a new issue