Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(client): initialize app_name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Matthew Fisher committed Jul 21, 2014
1 parent 0783038 commit d91a01a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/deis.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,10 @@ def apps_create(self, args):
--no-remote do not create a 'deis' git remote
"""
body = {}
app_name = None
if not self._session.is_git_app():
app_name = self._session.app
# prevent app name from being set to None
# prevent app name from being reset to None
if args.get('<id>'):
app_name = args.get('<id>')
if app_name:
Expand Down

0 comments on commit d91a01a

Please sign in to comment.