Skip to content

Commit 8c6c37b

Browse files
author
Matthew Fisher
committed
fix(client): return lowercase app name
1 parent 49bba74 commit 8c6c37b

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
@@ -1941,6 +1941,8 @@ def parse_args(cmd):
19411941

19421942
def _dispatch_cmd(method, args):
19431943
logger = logging.getLogger(__name__)
1944+
if args.get('--app'):
1945+
args['--app'] = args['--app'].lower()
19441946
try:
19451947
method(args)
19461948
except requests.exceptions.ConnectionError as err:

0 commit comments

Comments
 (0)