Correcting path to db to correctly show variables for profiles.

This commit is contained in:
Emiliano Vavassori 2015-09-11 23:59:01 +02:00
parent 967e3da29a
commit 078373258c
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class MyApp:
def __rolevars(self, role=None):
retval = {'role': role, 'addpkg': [], 'delpkg': []}
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):
if data['name'] == role:
retval['addpkg'] = data['props']['Addpkg'].split()