Skip to content

Commit

Permalink
Rename of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pperezredborder committed Jul 15, 2024
1 parent 634b985 commit 15fc1b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
elasticache_hosts = new_resource.elasticache_hosts
memcached_servers = new_resource.memcached_servers
http_workers = [[10 * node['cpu']['total'].to_i, (memory_kb / (3 * 1024 * 1024)).floor ].min, 1].max.to_i
auth_mode = new_resource.sso_enabled
auth_mode = new_resource.auth_mode

if node['redborder']['sso_enabled'] == '1'
auth_mode = 'saml'
end
auth_mode = 'saml' if node['redborder']['sso_enabled'] == '1'

# INSTALLATION
# begin
Expand Down
2 changes: 1 addition & 1 deletion resources/resources/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
attribute :elasticache_hosts, kind_of: Object
attribute :zk_hosts, kind_of: String
attribute :s3_local_storage, kind_of: String, default: 'minio'
attribute :sso_enabled, kind_of: String, default: 'database'
attribute :auth_mode, kind_of: String, default: 'database'

0 comments on commit 15fc1b9

Please sign in to comment.