Allow specifying snap env vars on binary entry points

Change-Id: I6aa6d80a81729277c99df8470e7acf04f5c906c6
This commit is contained in:
Corey Bryant 2017-04-18 18:42:33 +00:00
parent 2e1a8892f4
commit 760061ef5f
1 changed files with 1 additions and 1 deletions

View File

@ -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):