fix(ci): detect properly plugin changes in lib directory (#4264)

This commit is contained in:
Kevin Duret 2023-03-08 10:35:39 +01:00 committed by GitHub
parent f2afd9f5d4
commit 9c4e15e1f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ list_packages = set()
for plugin in plugins: for plugin in plugins:
list_plugins.add(plugin) list_plugins.add(plugin)
try: try:
found = re.search('(.*)\/(?:plugin\.pm|mode\/.+|custom\/.+)', plugin).group(1) found = re.search('(.*)\/(?:plugin\.pm|(?:lib|mode|custom)\/.+)', plugin).group(1)
list_plugins.add(found) list_plugins.add(found)
except AttributeError: except AttributeError:
pass pass

View File

@ -49,7 +49,7 @@ sub search {
$map_search_field->{PTR} = 'ptrdname' if (defined($self->{option_results}->{use_ptr_fqdn})); $map_search_field->{PTR} = 'ptrdname' if (defined($self->{option_results}->{use_ptr_fqdn}));
my $error_quit = defined($options{error_quit}) ? $options{error_quit} : undef; my $error_quit = defined($options{error_quit}) ? $options{error_quit} : undef;
my $reply = $handle->search($self->{option_results}->{search}, $search_type); my $reply = $handle->search($self->{option_results}->{search}, $search_type);
if ($reply) { if ($reply) {
foreach my $rr ($reply->answer) { foreach my $rr ($reply->answer) {
@ -68,14 +68,14 @@ sub search {
$self->{output}->exit(); $self->{output}->exit();
} }
} }
return sort @results; return sort @results;
} }
sub connect { sub connect {
my ($self, %options) = @_; my ($self, %options) = @_;
my %dns_options = (); my %dns_options = ();
if (defined($self->{option_results}->{nameservers})) { if (defined($self->{option_results}->{nameservers})) {
$dns_options{nameservers} = [@{$self->{option_results}->{nameservers}}]; $dns_options{nameservers} = [@{$self->{option_results}->{nameservers}}];
} }