Fix the service conf file path

TrivialFix

Change-Id: If3cb5e55df944cb79747d6f1fff378c7598c6249
This commit is contained in:
Michal Rostecki 2016-03-21 12:00:40 +01:00
parent 4225243399
commit 52b2028585
1 changed files with 4 additions and 2 deletions

View File

@ -46,8 +46,10 @@ def write_openrc(out_filename):
def run_deployment():
for proj in set(getattr(CONF.profiles, CONF.kolla.profile)):
for fn in os.listdir(os.path.join(CONF.service_dir, proj)):
if fn.endswith('.j2') and os.path.isfile(fn):
proj_dir = os.path.join(CONF.service_dir, proj)
for fn in os.listdir(proj_dir):
full_path = os.path.join(proj_dir, fn)
if fn.endswith('.j2') and os.path.isfile(full_path):
service.run_service(fn, CONF.service_dir)