Skip to content

Commit fdda24a

Browse files
author
Matthew Fisher
committed
Merge pull request #2192 from bacongobbler/underscore_appname
fix(client): return lowercase app name
2 parents 39e35f5 + 8c6c37b commit fdda24a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

client/deis.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def __init__(self):
9494
def app(self):
9595
"""Retrieve the application's name."""
9696
try:
97-
return self._get_name_from_git_remote(self.git_root())
97+
return self._get_name_from_git_remote(self.git_root()).lower()
9898
except EnvironmentError:
99-
return os.path.basename(os.getcwd())
99+
return os.path.basename(os.getcwd()).lower()
100100

101101
def is_git_app(self):
102102
"""Determines if this app is a git repository. This is important in special cases
@@ -1993,6 +1993,8 @@ def parse_args(cmd):
19931993

19941994
def _dispatch_cmd(method, args):
19951995
logger = logging.getLogger(__name__)
1996+
if args.get('--app'):
1997+
args['--app'] = args['--app'].lower()
19961998
try:
19971999
method(args)
19982000
except requests.exceptions.ConnectionError as err:

0 commit comments

Comments
 (0)