Allow setting a one-off container name

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin 2015-08-26 13:33:03 -04:00
commit d2718bed99
5 changed files with 32 additions and 1 deletions

View file

@ -586,7 +586,7 @@ class Service(object):
if self.custom_container_name() and not one_off:
container_options['name'] = self.custom_container_name()
else:
elif not container_options.get('name'):
container_options['name'] = self.get_container_name(number, one_off)
if add_config_hash: