X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=portal%2Faccountview.py;h=d9666cbf76b4db2ce01b6b346fe1a27f3c0c9b8a;hb=866ec8031ee660f004443676fd686adfdff47394;hp=d4b68f40e10e8b8c8708f06f0032fefa9b250572;hpb=c5795ba59e99c3a9b7481f4965814eca3e9a950d;p=myslice.git diff --git a/portal/accountview.py b/portal/accountview.py index d4b68f40..d9666cbf 100644 --- a/portal/accountview.py +++ b/portal/accountview.py @@ -161,6 +161,9 @@ def account_process(request): # private_key = k.as_pem() # private_key = ''.join(private_key.split()) # public_key = "ssh-rsa " + public_key + # now we overwrite the config field with keypair + # once there will be user_hrn, we need to keep user_hrn and change only the keypair + # see submit_name section for implementing this keypair = '{"user_public_key":'+ public_key + ', "user_private_key":'+ private_key + '}' # keypair = re.sub("\r", "", keypair) # keypair = re.sub("\n", "\\n", keypair)