mirror of https://github.com/status-im/consul.git
acl: rename merge context update() -> fill()
This commit is contained in:
parent
ce04ce13dd
commit
a20ba21e29
|
@ -236,7 +236,7 @@ func (p *policyRulesMergeContext) merge(policy *PolicyRules) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *policyRulesMergeContext) update(merged *PolicyRules) {
|
func (p *policyRulesMergeContext) fill(merged *PolicyRules) {
|
||||||
merged.ACL = p.aclRule
|
merged.ACL = p.aclRule
|
||||||
merged.Keyring = p.keyringRule
|
merged.Keyring = p.keyringRule
|
||||||
merged.Operator = p.operatorRule
|
merged.Operator = p.operatorRule
|
||||||
|
@ -354,8 +354,8 @@ func (m *PolicyMerger) Policy() *Policy {
|
||||||
ID: fmt.Sprintf("%x", m.idHasher.Sum(nil)),
|
ID: fmt.Sprintf("%x", m.idHasher.Sum(nil)),
|
||||||
}
|
}
|
||||||
|
|
||||||
m.policyRulesMergeContext.update(&merged.PolicyRules)
|
m.policyRulesMergeContext.fill(&merged.PolicyRules)
|
||||||
m.enterprisePolicyRulesMergeContext.update(&merged.EnterprisePolicyRules)
|
m.enterprisePolicyRulesMergeContext.fill(&merged.EnterprisePolicyRules)
|
||||||
|
|
||||||
return merged
|
return merged
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,6 @@ func (ctx *enterprisePolicyRulesMergeContext) merge(*EnterprisePolicyRules) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ctx *enterprisePolicyRulesMergeContext) update(*EnterprisePolicyRules) {
|
func (ctx *enterprisePolicyRulesMergeContext) fill(*EnterprisePolicyRules) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue