Bug #398

domain wrong if host contians a '.'

Added by Matt Moran over 1 year ago. Updated over 1 year ago.

Status:Closed Start:10/04/2010
Priority:Normal Due date:
Assigned to:Ohad Levy % Done:

100%

Category:Host creation
Target version:0.1-6
Backlog: Difficulity:
Votes: 0

Description

http://github.com/ohadlevy/foreman/blob/develop/app/models/host.rb#L451

If host = 'xx-01.xx-02' then the domain will be 'xx-02.mydomain.com' and not 'mydomain.com'

0001-fixes-bug-398-issue-with-adding-hosts-with-full-stop.patch (2.2 KB) Matt Moran, 10/04/2010 02:05 pm

Associated revisions

Revision 61dc8cee7a6ab85a6bb08896e599446ed0a290de
Added by Matt Moran over 1 year ago

fixes bug #398 - issue with adding hosts with full stops
This introduce a small behaviour change, before, once adding host like:
x.domain.net, foreman would automatically add domain.net to its domain
list, but now, as a full stop(".") is a valid hostname char,
we can't parse the domain name safely, therefor we expect the user to
make sure that the domain created before creating a host.

History

Updated by Matt Moran over 1 year ago

Here's my patch.

Updated by Ohad Levy over 1 year ago

  • Status changed from New to Ready For Testing
  • Target version set to 0.1-6
  • % Done changed from 0 to 100

Updated by Matt Moran over 1 year ago

Pulled update. Tested okay.

Updated by Ohad Levy over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF