From: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/Namespace.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lnst/Controller/Namespace.py b/lnst/Controller/Namespace.py
index c50152d..35155be 100644
--- a/lnst/Controller/Namespace.py
+++ b/lnst/Controller/Namespace.py
@@ -54,6 +54,10 @@ class Namespace(object):
def hostid(self):
return self._machine.get_id()
+ @property
+ def hostname(self):
+ return self._machine.get_hostname()
+
@property
def devices(self):
"""List of mapped devices available in the
Namespace"""
--
2.21.0