Allow specifying snap env vars on binary entry points
Change-Id: I6aa6d80a81729277c99df8470e7acf04f5c906c6
This commit is contained in:
parent
39210c7412
commit
034efe40ef
|
@ -122,7 +122,7 @@ class OpenStackSnap(object):
|
|||
raise ValueError(_msg)
|
||||
|
||||
if cmd_type == DEFAULT_EP_TYPE:
|
||||
cmd = [entry_point['binary']]
|
||||
cmd = [entry_point['binary'].format(**utils.snap_env)]
|
||||
for cfile in entry_point.get('config-files', []):
|
||||
cfile = cfile.format(**utils.snap_env)
|
||||
if os.path.exists(cfile):
|
||||
|
|
Loading…
Reference in New Issue