Rename the option

This commit is contained in:
Sergey Dudoladov
2018-12-21 16:51:23 +01:00
parent 83ef5ff5b6
commit ed6e028b21
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -710,7 +710,7 @@ func (c *Cluster) initRobotUsers() error {
return fmt.Errorf("invalid flags for user %q: %v", username, err)
}
adminRole := ""
if c.OpConfig.AddAdminFlagToRobotRoles {
if c.OpConfig.EnableAdminRoleForUsers {
adminRole = c.OpConfig.TeamAdminRole
}
newRole := spec.PgUser{