Skip to content

Commit d5974aa

Browse files
Merge pull request #1695 from atlassian/confluence/fix-deployment-type
confluence/fix-deployment-type
2 parents b62b04d + e26e4dd commit d5974aa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/util/api/confluence_clients.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ def get_system_info_page(self):
202202
}
203203

204204
auth_body = {
205-
'destination': '/admin/systeminfo.action',
206205
'authenticate': 'Confirm',
207-
'password': self.password
206+
'destination': '/admin/systeminfo.action',
207+
'password': self.password,
208208
}
209209

210210
login_page_response = self.session.get(login_url)
@@ -219,12 +219,11 @@ def get_system_info_page(self):
219219
else:
220220
self.session.post(url=tsv_auth_url, json=tsv_login_body)
221221

222-
self.headers['X-Atlassian-Token'] = 'no-check'
223-
system_info_html = self.session.post(url=auth_url, data=auth_body, headers=self.headers)
222+
system_info_html = self.session.post(url=auth_url, data=auth_body, headers={'X-Atlassian-Token': 'no-check'}, verify=self.verify)
224223
return system_info_html.content.decode("utf-8")
225224

226225
def get_deployment_type(self):
227-
html_pattern = 'com.atlassian.dcapt.deployment=terraform'
226+
html_pattern = 'deployment=terraform'
228227
confluence_system_page = self.get_system_info_page()
229228
if confluence_system_page.count(html_pattern):
230229
return 'terraform'

0 commit comments

Comments
 (0)