Skip to content

Commit

Permalink
Remove port from suggested app names
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed May 22, 2011
1 parent 668536e commit 41eda4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cli/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def target_url
target_file = File.expand_path(TARGET_FILE)
if File.exists? target_file
@target_url = File.read(target_file).strip!
ha = @target_url.split('.')
# strip out the port if present as it's not needed
ha = @target_url.gsub(/\:[0-9]{2,}/, '').split('.')
ha.shift
@suggest_url = ha.join('.')
@suggest_url = DEFAULT_SUGGEST if @suggest_url.empty?
Expand Down

1 comment on commit 41eda4d

@oppegard
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you submit a pull request so that Cloud Foundry engineering are aware you have a code fix for this issue?

Please sign in to comment.