diff --git a/centreon-plugins/cloud/aws/fsx/mode/discovery.pm b/centreon-plugins/cloud/aws/fsx/mode/discovery.pm index 85ffce23a..e72abea45 100644 --- a/centreon-plugins/cloud/aws/fsx/mode/discovery.pm +++ b/centreon-plugins/cloud/aws/fsx/mode/discovery.pm @@ -65,7 +65,7 @@ sub run { $fsx{creation_time} = $fsx_instance->{CreationTime}; $fsx{lifecycle} = $fsx_instance->{Lifecycle}; $fsx{fsx_type} = $fsx_instance->{FileSystemType}; - foreach my $tag (@{$instance->{Tags}}) { + foreach my $tag (@{$fsx_instance->{Tags}}) { push @{$fsx{tags}}, { key => $tag->{Key}, value => $tag->{Value} }; } push @disco_data, \%fsx;