forked from LibreSchool/doraemon
Correcting path to db to correctly show variables for profiles.
This commit is contained in:
parent
967e3da29a
commit
078373258c
@ -109,7 +109,7 @@ class MyApp:
|
|||||||
def __rolevars(self, role=None):
|
def __rolevars(self, role=None):
|
||||||
retval = {'role': role, 'addpkg': [], 'delpkg': []}
|
retval = {'role': role, 'addpkg': [], 'delpkg': []}
|
||||||
try:
|
try:
|
||||||
db = Popen(['db', 'roles', 'getjson'], stdout=PIPE).communicate()[0]
|
db = Popen(['/sbin/e-smith/db', 'roles', 'getjson'], stdout=PIPE).communicate()[0]
|
||||||
for data in json.loads(db):
|
for data in json.loads(db):
|
||||||
if data['name'] == role:
|
if data['name'] == role:
|
||||||
retval['addpkg'] = data['props']['Addpkg'].split()
|
retval['addpkg'] = data['props']['Addpkg'].split()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user