Check if subscription metadata update response does not have errors
This commit is contained in:
		
					parent
					
						
							
								791f48513a
							
						
					
				
			
			
				commit
				
					
						a3a8227007
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -106,8 +106,8 @@ def create_vm_task(self, vm_template_id, user, specs, template, order_id): | |||
|             subscription_id=hosting_order.subscription_id, | ||||
|             metadata={"VM_ID": str(vm_id)} | ||||
|         ) | ||||
|         stripe_subscription_obj = result.get('response_object') | ||||
|         if stripe_subscription_obj is not None: | ||||
| 
 | ||||
|         if result.get('error') is not None: | ||||
|             emsg = "Could not update subscription metadata for {sub}".format( | ||||
|                     sub=hosting_order.subscription_id | ||||
|                 ) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue