Skip to content

Commit

Permalink
Merge pull request #3230 from gravitl/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
abhishek9686 authored Nov 27, 2024
2 parents 462395f + dc65635 commit 343f5ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions logic/acls.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func CreateDefaultAclNetworkPolicies(netID models.NetworkID) {
if netID.String() == "" {
return
}
_, _ = ListAcls(netID)
if !IsAclExists(fmt.Sprintf("%s.%s", netID, "all-nodes")) {
defaultDeviceAcl := models.Acl{
ID: fmt.Sprintf("%s.%s", netID, "all-nodes"),
Expand Down Expand Up @@ -172,9 +173,6 @@ func InsertAcl(a models.Acl) error {
func GetAcl(aID string) (models.Acl, error) {
a := models.Acl{}
if servercfg.CacheEnabled() {
if len(aclCacheMap) == 0 {
_ = listAcls()
}
var ok bool
a, ok = getAclFromCache(aID)
if ok {
Expand Down
2 changes: 2 additions & 0 deletions migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import (

// Run - runs all migrations
func Run() {
_, _ = logic.GetAllNodes()
_, _ = logic.GetAllHosts()
updateEnrollmentKeys()
assignSuperAdmin()
createDefaultTagsAndPolicies()
Expand Down
2 changes: 1 addition & 1 deletion netclient/ncutils/netclientutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// DEFAULT_GC_PERCENT - garbage collection percent
const DEFAULT_GC_PERCENT = 10
const DEFAULT_GC_PERCENT = 100

// == OS PATH FUNCTIONS ==

Expand Down

0 comments on commit 343f5ee

Please sign in to comment.