Commit b5ad7bf4 authored by Łukasz Nowak's avatar Łukasz Nowak

[playbook] Make erp5-show aware of Wendelin

Since "[playbook] Make Wendelin like ERP5" Wendelin became compatible
with ERP5 SR, so compilation detection script shall support it.
parent 4fedaf54
...@@ -28,7 +28,7 @@ def get_connection_information(software_release): ...@@ -28,7 +28,7 @@ def get_connection_information(software_release):
conn = sqlite3.connect("/opt/slapos/slapproxy.db") conn = sqlite3.connect("/opt/slapos/slapproxy.db")
cur = conn.cursor() cur = conn.cursor()
if 'software/erp5' in software_release: if 'software/erp5' in software_release or 'software/wendelin' in software_release:
partition_reference = 'instance-of-erp5' partition_reference = 'instance-of-erp5'
elif 'software/apache-frontend' in software_release: elif 'software/apache-frontend' in software_release:
partition_reference = 'apache-frontend-1' partition_reference = 'apache-frontend-1'
...@@ -116,7 +116,7 @@ def status(): ...@@ -116,7 +116,7 @@ def status():
build = False build = False
if build: if build:
erp5_sr = [q for q in software_release_list if 'software/erp5' in q][0] erp5_sr = [q for q in software_release_list if 'software/erp5' in q or 'software/wendelin' in q][0]
frn_sr = [q for q in software_release_list frn_sr = [q for q in software_release_list
if 'software/apache-frontend' in q][0] if 'software/apache-frontend' in q][0]
zope_ip, pw = get_connection_information(erp5_sr) zope_ip, pw = get_connection_information(erp5_sr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment