mirror of
https://github.com/ARM-software/devlib.git
synced 2025-07-09 07:12:41 +01:00
target: Expose hostname as target property
This commit is contained in:
@ -139,6 +139,10 @@ class Target(object):
|
|||||||
def hostid(self):
|
def hostid(self):
|
||||||
return int(self.execute('{} hostid'.format(self.busybox)).strip(), 16)
|
return int(self.execute('{} hostid'.format(self.busybox)).strip(), 16)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def hostname(self):
|
||||||
|
return self.execute('{} hostname'.format(self.busybox)).strip()
|
||||||
|
|
||||||
@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