Merge pull request #649 from pcoder/bug/5308/correct_ipv6_vm_name
Bug/5308/Correct IPv6 VM name
This commit is contained in:
		
				commit
				
					
						e16aab6951
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -162,7 +162,10 @@ class VirtualMachineSerializer(serializers.Serializer): | |||
|             return '-' | ||||
| 
 | ||||
|     def get_name(self, obj): | ||||
|         if obj.name.startswith('public-'): | ||||
|             return obj.name.lstrip('public-') | ||||
|         else: | ||||
|             return obj.name | ||||
| 
 | ||||
| 
 | ||||
| class VMTemplateSerializer(serializers.Serializer): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue