File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ def supports?
120
120
:FILTER , :NETWORKZONE , :SKIP_ERRORS
121
121
122
122
def agent_download_url
123
- download_uri = "#{ api_base_url ( credentials ) } /v1/deployment/installer/agent/unix/paas/latest?#{ technologies ( credentials ) } " \
123
+ download_uri = "#{ api_base_url ( credentials ) } " \
124
+ "/v1/deployment/installer/agent/unix/paas/latest?#{ technologies ( credentials ) } " \
124
125
'&bitness=64' \
125
126
"&Api-Token=#{ credentials [ APITOKEN ] } "
126
127
@@ -130,13 +131,13 @@ def agent_download_url
130
131
end
131
132
132
133
def technologies ( credentials )
133
- code_modules = " include=java"
134
- if not credentials [ ADDTECHNOLOGIES ] . empty?
135
- credentials [ ADDTECHNOLOGIES ] . split ( "," ) . each do |tech |
134
+ code_modules = ' include=java'
135
+ if credentials . key? ( ADDTECHNOLOGIES )
136
+ credentials [ ADDTECHNOLOGIES ] . split ( ',' ) . each do |tech |
136
137
code_modules += "&include=#{ tech } "
137
138
end
138
139
end
139
- return code_modules
140
+ code_modules
140
141
end
141
142
142
143
def agent_manifest
Original file line number Diff line number Diff line change @@ -36,12 +36,10 @@ def handle_params(params)
36
36
37
37
query_params = ''
38
38
39
- params . split ( "&" ) . each do |single_param |
40
- k , v = single_param . split ( "=" )
41
- if k . match ( keywords )
42
- v = "***"
43
- end
44
- query_params += k + '=' +v + '&'
39
+ params . split ( '&' ) . each do |single_param |
40
+ k , v = single_param . split ( '=' )
41
+ v = '***' if k . match ( keywords )
42
+ query_params += k + '=' + v + '&'
45
43
end
46
44
query_params
47
45
end
You can’t perform that action at this time.
0 commit comments