fixed #3350
This commit is contained in:
		
					parent
					
						
							
								24ecdd2f26
							
						
					
				
			
			
				commit
				
					
						817f800fbd
					
				
			
		
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -369,7 +369,7 @@ class SSHKeyCreateView(LoginRequiredMixin, FormView): | |||
|         manager = OpenNebulaManager() | ||||
| 
 | ||||
|         # Get user ssh key | ||||
|         public_key = form.cleaned_data.get('public_key') | ||||
|         public_key = form.cleaned_data.get('public_key', '').decode('utf-8') | ||||
|         # Add ssh key to user | ||||
|         try: | ||||
|             manager.add_public_key(user=owner, public_key=public_key, merge=True) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue