mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
target: Expose hostname as target property
This commit is contained in:
parent
2a633b783a
commit
82a2f7d8b6
@ -139,6 +139,10 @@ class Target(object):
|
||||
def hostid(self):
|
||||
return int(self.execute('{} hostid'.format(self.busybox)).strip(), 16)
|
||||
|
||||
@property
|
||||
def hostname(self):
|
||||
return self.execute('{} hostname'.format(self.busybox)).strip()
|
||||
|
||||
@property
|
||||
def os_version(self): # pylint: disable=no-self-use
|
||||
return {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user