Merge pull request #268 from levivm/develop
fixed configuration name in vm detail
This commit is contained in:
		
				commit
				
					
						4dc60c4b1a
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -151,7 +151,7 @@ class VirtualMachineSerializer(serializers.Serializer):
 | 
			
		|||
    def get_configuration(self, obj):
 | 
			
		||||
        template_id = obj.template.template_id
 | 
			
		||||
        template = OpenNebulaManager().get_template(template_id)
 | 
			
		||||
        return template.name
 | 
			
		||||
        return template.name.strip('public-')
 | 
			
		||||
 | 
			
		||||
    def get_ipv4(self, obj):
 | 
			
		||||
        nic = obj.template.nics[0]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue