Add missing format var in error
This commit is contained in:
parent
87c46e281c
commit
785cb12833
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ class Service(object):
|
||||||
if not re.match('^[a-zA-Z0-9_]+$', name):
|
if not re.match('^[a-zA-Z0-9_]+$', name):
|
||||||
raise ValueError('Invalid name: %s' % name)
|
raise ValueError('Invalid name: %s' % name)
|
||||||
if 'image' in options and 'build' in options:
|
if 'image' in options and 'build' in options:
|
||||||
raise ValueError('Service %s has both an image and build path specified. A service can either be built to image or use an existing image, not both.')
|
raise ValueError('Service %s has both an image and build path specified. A service can either be built to image or use an existing image, not both.' % name)
|
||||||
|
|
||||||
self.name = name
|
self.name = name
|
||||||
self.client = client
|
self.client = client
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue