mirror of https://github.com/status-im/consul.git
consul: Deprecate ACLForceSet
This commit is contained in:
parent
c832ea8aa3
commit
e6ed387f42
|
@ -129,7 +129,7 @@ func (s *Server) initializeACL() error {
|
|||
if acl == nil {
|
||||
req := structs.ACLRequest{
|
||||
Datacenter: authDC,
|
||||
Op: structs.ACLForceSet,
|
||||
Op: structs.ACLSet,
|
||||
ACL: structs.ACL{
|
||||
ID: anonymousToken,
|
||||
Name: "Anonymous Token",
|
||||
|
@ -156,7 +156,7 @@ func (s *Server) initializeACL() error {
|
|||
if acl == nil {
|
||||
req := structs.ACLRequest{
|
||||
Datacenter: authDC,
|
||||
Op: structs.ACLForceSet,
|
||||
Op: structs.ACLSet,
|
||||
ACL: structs.ACL{
|
||||
ID: master,
|
||||
Name: "Master Token",
|
||||
|
|
|
@ -440,7 +440,7 @@ type ACLOp string
|
|||
|
||||
const (
|
||||
ACLSet ACLOp = "set"
|
||||
ACLForceSet = "force-set"
|
||||
ACLForceSet = "force-set" // Deprecated, left to backwards compatibility
|
||||
ACLDelete = "delete"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue