Skip to content

Commit e461de2

Browse files
[TBT-381] Fixed build failure Env issue
1 parent 1934be6 commit e461de2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/travis/api/app/endpoint/assembla.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def deep_integration_enabled?
5050
end
5151

5252
def valid_asm_cluster?
53-
allowed = Array(Travis.config.assembla_clusters)
53+
allowed = Array(Travis.config.assembla_clusters.split(','))
5454
cluster = request.env['HTTP_X_ASSEMBLA_CLUSTER']
5555
allowed.include?(cluster)
5656
end

lib/travis/config/defaults.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def fallback_logs_api_auth_token
108108
legacy_roles: false,
109109
internal_users: [{id: 0, login: 'cron'}],
110110
deep_integration_enabled: ENV['DEEP_INTEGRATION_ENABLED'],
111-
assembla_clusters: ENV['ASSEMBLA_CLUSTERS'].split(','),
111+
assembla_clusters: ENV['ASSEMBLA_CLUSTERS'],
112112
assembla_jwt_secret: ENV['ASSEMBLA_JWT_SECRET']
113113

114114
default :_access => [:key]

spec/unit/endpoint/assembla_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
before do
2020
Travis.config[:deep_integration_enabled] = true
21-
Travis.config[:assembla_clusters] = ['cluster1']
21+
Travis.config[:assembla_clusters] = 'cluster1'
2222
Travis.config[:assembla_jwt_secret] = jwt_secret
2323

2424
header 'X_ASSEMBLA_CLUSTER', 'cluster1'

0 commit comments

Comments
 (0)