(plugin) notification::microsoft::office365::teams - fix uninitialized value (#4146)
This commit is contained in:
parent
ec9ef04f73
commit
aa443baf7d
|
@ -140,7 +140,11 @@ sub build_resource_status_filters {
|
|||
"name" => "search",
|
||||
"object_type" => undef,
|
||||
"type" => "text",
|
||||
"value"=> "s.description:$self->{option_results}->{service_name} h.name:$self->{option_results}->{host_name}"
|
||||
"value" => sprintf(
|
||||
's.description:%s h.name:%s',
|
||||
defined($self->{option_results}->{service_name}) ? $self->{option_results}->{service_name} : '',
|
||||
defined($self->{option_results}->{host_name}) ? $self->{option_results}->{host_name} : ''
|
||||
)
|
||||
},
|
||||
{
|
||||
"name" => "sort",
|
||||
|
|
Loading…
Reference in New Issue