Skip to content

Commit 68662b0

Browse files
author
Matthew Fisher
committed
fix(client): require the tag for builds:create
1 parent d081858 commit 68662b0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

client/deis.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,15 +958,19 @@ def builds_create(self, args):
958958
959959
Arguments:
960960
<image>
961-
A fully-qualified docker image, either from Docker Hub (e.g. deis/example-go)
962-
or from an in-house registry (e.g. myregistry.example.com:5000/example-go).
961+
A fully-qualified docker image, either from Docker Hub (e.g. deis/example-go:latest)
962+
or from an in-house registry (e.g. myregistry.example.com:5000/example-go:latest).
963+
This image must include the tag.
963964
964965
Options:
965966
-a --app=<app>
966967
The uniquely identifiable name for the application.
967968
-p --procfile=<procfile>
968969
A YAML string used to supply a Procfile to the application.
969970
"""
971+
if ':' not in args['<image>']:
972+
self._logger.error('<image> must contain a tag')
973+
sys.exit(1)
970974
app = args.get('--app')
971975
if not app:
972976
app = self._session.app

0 commit comments

Comments
 (0)