diff --git a/sat/core/sat_main.py b/sat/core/sat_main.py index ca513e28..6a9ef947 100644 --- a/sat/core/sat_main.py +++ b/sat/core/sat_main.py @@ -613,6 +613,13 @@ class SAT(service.Service): def getNamespaces(self): return self.ns_map + def getNamespace(self, short_name): + try: + return self.ns_map[short_name] + except KeyError: + raise exceptions.NotFound(u"namespace {short_name} is not registered" + .format(short_name=short_name)) + def getSessionInfos(self, profile_key): """compile interesting data on current profile session""" client = self.getClient(profile_key)