Skip to content
Snippets Groups Projects
Commit 3e45b7b0 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Fixed request object check

parent bf6dc72c
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ def setup(interactive=True): ...@@ -40,7 +40,7 @@ def setup(interactive=True):
act_key = utils.get_conf('SKYREACH_ACTIVATION_KEY') act_key = utils.get_conf('SKYREACH_ACTIVATION_KEY')
if act_key: if act_key:
req = requests.post(sk_url + '/erp/credentials/envsetup-conf.sh', data=dict(key=act_key, public_key=public_key), verify=verify, timeout=20) req = requests.post(sk_url + '/erp/credentials/envsetup-conf.sh', data=dict(key=act_key, public_key=public_key), verify=verify, timeout=20)
if not req: if req is None:
utils.log('\033[1;33m No activation key nor API key are set, skipping configuration download. \033[0m') utils.log('\033[1;33m No activation key nor API key are set, skipping configuration download. \033[0m')
return return
# Write conf # Write conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment