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);""" RETURNING *,(SELECT email FROM public.users WHERE role='owner' LIMIT 1);"""
) )
data = cur.fetchone() 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(): def new_client():
@ -40,4 +40,4 @@ def new_client():
(SELECT email FROM public.users WHERE role='owner' LIMIT 1) AS email (SELECT email FROM public.users WHERE role='owner' LIMIT 1) AS email
FROM public.tenants;""") FROM public.tenants;""")
data = cur.fetchone() 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);""" RETURNING *,(SELECT email FROM users_ee WHERE role = 'owner' AND users_ee.tenant_id = tenants.tenant_id LIMIT 1);"""
) )
data = cur.fetchall() 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]}) json={"stats": [process_data(d, edition='ee') for d in data]})
@ -65,4 +65,4 @@ def new_client(tenant_id):
FROM public.tenants FROM public.tenants
WHERE tenant_id=%(tenant_id)s;""", {"tenant_id": tenant_id})) WHERE tenant_id=%(tenant_id)s;""", {"tenant_id": tenant_id}))
data = cur.fetchone() 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.") 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 { if err != nil {
log.Fatalf("Error while checking license. %v", err) 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": ""} # payload: {"mid": "UUID of the machine", "license": ""}
# response {"data":{"valid": TRUE|FALSE, "expiration": expiration date in ms}} # response {"data":{"valid": TRUE|FALSE, "expiration": expiration date in ms}}

View file

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