Skip to content

Commit

Permalink
improve docs and set default domain_suffix to be list
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyg committed Sep 3, 2019
1 parent 1dcafc0 commit 6d881de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions lib/App/Netdisco/DB/ResultSet/NodeIp.pm
Expand Up @@ -99,7 +99,11 @@ sub search_by_ip {

=head1 search_by_dns( \%cond, \%attrs? )
my $set = $rs->search_by_dns({dns => 'foo.example.com', active => 1});
my $set = $rs->search_by_dns({
dns => 'foo.example.com',
suffix => qr/(?:\.example\..com|\.local)$/,
active => 1
});
Like C<search()>, this returns a ResultSet of matching rows from the
NodeIp table.
Expand All @@ -118,8 +122,8 @@ to search for. The value may optionally include SQL wildcard characters.
=item *
The C<cond> parameter may optionally have a suffix parameter which is a
regular expression of domain names that must also match the results.
The C<cond> parameter may optionally have a C<suffix> parameter which is a
regular expression of domain names - one of which must match the results.
=item *
Expand Down
2 changes: 1 addition & 1 deletion share/config.yml
Expand Up @@ -22,7 +22,7 @@ external_databases: []
# WEB FRONTEND
# ------------

domain_suffix: ""
domain_suffix: []
no_auth: false
suggest_guest: false
navbar_autocomplete: true
Expand Down
2 changes: 1 addition & 1 deletion share/environments/deployment.yml
Expand Up @@ -36,7 +36,7 @@ device_auth:
# will be stripped from fqdn when displayed in the web UI
# also, do not forget the leading dot.
# ```````````````````````````````````````````````````````
#domain_suffix: '.example.com'
#domain_suffix: ['.example.com']


# ¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸
Expand Down

0 comments on commit 6d881de

Please sign in to comment.