parrot global changes
This commit is contained in:
parent
3b3015e025
commit
72f2a96f31
5 changed files with 7 additions and 7 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 }}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue