mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	target: Expose hostid as target property
This commit is contained in:
		@@ -135,6 +135,10 @@ class Target(object):
 | 
				
			|||||||
    def kernel_version(self):
 | 
					    def kernel_version(self):
 | 
				
			||||||
        return KernelVersion(self.execute('{} uname -r -v'.format(quote(self.busybox))).strip())
 | 
					        return KernelVersion(self.execute('{} uname -r -v'.format(quote(self.busybox))).strip())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @property
 | 
				
			||||||
 | 
					    def hostid(self):
 | 
				
			||||||
 | 
					        return int(self.execute('{} hostid'.format(self.busybox)).strip(), 16)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def os_version(self):  # pylint: disable=no-self-use
 | 
					    def os_version(self):  # pylint: disable=no-self-use
 | 
				
			||||||
        return {}
 | 
					        return {}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user