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

Commit

Permalink
handle builder target that contains a port
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Monroy committed Feb 12, 2014
1 parent b85954d commit 15a71a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/deis.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def readable_datetime(datetime_str):
else:
return "{}{}ago".format(hour_str, min_str)
# if it happened yesterday, say "yesterday at 3:23 pm"
yesterday = now + relativedelta.relativedelta(days=-1)
yesterday = now + relativedelta.relativedelta(days= -1)
if delta.days <= 2 and dt.day == yesterday.day:
return dt.strftime("Yesterday at %X")
# otherwise return locale-specific date/time format
Expand Down Expand Up @@ -474,7 +474,7 @@ def apps_create(self, args):
app_id = data['id']
print("done, created {}".format(app_id))
# add a git remote
hostname = urlparse.urlparse(self._settings['controller']).netloc
hostname = urlparse.urlparse(self._settings['controller']).netloc.split(':')[0]
git_remote = "git@{hostname}:{app_id}.git".format(**locals())
try:
subprocess.check_call(
Expand Down

0 comments on commit 15a71a8

Please sign in to comment.