parrot global changes

This commit is contained in:
Taha Yassine Kraiem 2022-04-04 14:09:49 +02:00
parent 3b3015e025
commit 72f2a96f31
5 changed files with 7 additions and 7 deletions

View file

@ -30,7 +30,7 @@ def compute():
RETURNING *,(SELECT email FROM public.users WHERE role='owner' LIMIT 1);"""
)
data = cur.fetchone()
requests.post('https://parrot.asayer.io/os/telemetry', json={"stats": [process_data(data)]})
requests.post('https://api.openreplay.com/os/telemetry', json={"stats": [process_data(data)]})
def new_client():
@ -40,4 +40,4 @@ def new_client():
(SELECT email FROM public.users WHERE role='owner' LIMIT 1) AS email
FROM public.tenants;""")
data = cur.fetchone()
requests.post('https://parrot.asayer.io/os/signup', json=process_data(data))
requests.post('https://api.openreplay.com/os/signup', json=process_data(data))

View file

@ -53,7 +53,7 @@ def compute():
RETURNING *,(SELECT email FROM users_ee WHERE role = 'owner' AND users_ee.tenant_id = tenants.tenant_id LIMIT 1);"""
)
data = cur.fetchall()
requests.post('https://parrot.asayer.io/os/telemetry',
requests.post('https://api.openreplay.com/os/telemetry',
json={"stats": [process_data(d, edition='ee') for d in data]})
@ -65,4 +65,4 @@ def new_client(tenant_id):
FROM public.tenants
WHERE tenant_id=%(tenant_id)s;""", {"tenant_id": tenant_id}))
data = cur.fetchone()
requests.post('https://parrot.asayer.io/os/signup', json=process_data(data, edition='ee'))
requests.post('https://api.openreplay.com/os/signup', json=process_data(data, edition='ee'))

View file

@ -33,7 +33,7 @@ func CheckLicense() {
log.Fatal("Can not form a license check request.")
}
resp, err := http.Post("https://parrot.asayer.io/os/license", "application/json", bytes.NewReader(requestBody))
resp, err := http.Post("https://api.openreplay.com/os/license", "application/json", bytes.NewReader(requestBody))
if err != nil {
log.Fatalf("Error while checking license. %v", err)
}

View file

@ -26,7 +26,7 @@ which docker &> /dev/null || {
}
# https://parrot.asayer.io/os/license
# https://api.openreplay.com/os/license
# payload: {"mid": "UUID of the machine", "license": ""}
# response {"data":{"valid": TRUE|FALSE, "expiration": expiration date in ms}}

View file

@ -108,7 +108,7 @@
- all
- name: Checking Enterprise Licence
uri:
url: https://parrot.asayer.io/os/license
url: https://api.openreplay.com/os/license
body:
mid: "UUID of the machine"
license: "{{ enterprise_edition_license }}"