Skip to content

Commit d91a01a

Browse files
author
Matthew Fisher
committed
fix(client): initialize app_name
If you're in a git repo and you did not supply an app name to `deis create`, the client will fail because app_name was never initialized.
1 parent 0783038 commit d91a01a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/deis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,10 @@ def apps_create(self, args):
407407
--no-remote do not create a 'deis' git remote
408408
"""
409409
body = {}
410+
app_name = None
410411
if not self._session.is_git_app():
411412
app_name = self._session.app
412-
# prevent app name from being set to None
413+
# prevent app name from being reset to None
413414
if args.get('<id>'):
414415
app_name = args.get('<id>')
415416
if app_name:

0 commit comments

Comments
 (0)