From 0a1d540386e031f452e9c7b4382e6c98ffa1780a Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 24 Jun 2020 08:28:44 +0200 Subject: [PATCH] fix statefile path santricity --- storage/netapp/santricity/restapi/mode/storagecontrollers.pm | 2 +- storage/netapp/santricity/restapi/mode/storagevolumes.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/netapp/santricity/restapi/mode/storagecontrollers.pm b/storage/netapp/santricity/restapi/mode/storagecontrollers.pm index 6fc59d935..d7b4c6f2c 100644 --- a/storage/netapp/santricity/restapi/mode/storagecontrollers.pm +++ b/storage/netapp/santricity/restapi/mode/storagecontrollers.pm @@ -190,7 +190,7 @@ sub manage_selection { } } - $self->{cache_name} = 'netapp_santricity' . $self->{mode} . '_' . $options{custom}->get_hostname() . '_' . + $self->{cache_name} = 'netapp_santricity_' . $self->{mode} . '_' . $options{custom}->get_hostname() . '_' . (defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')) . '_' . (defined($self->{option_results}->{filter_storage_name}) ? md5_hex($self->{option_results}->{filter_storage_name}) : md5_hex('all')) . '_' . (defined($self->{option_results}->{filter_controller_name}) ? md5_hex($self->{option_results}->{filter_controller_name}) : md5_hex('all')); diff --git a/storage/netapp/santricity/restapi/mode/storagevolumes.pm b/storage/netapp/santricity/restapi/mode/storagevolumes.pm index 2d61a8082..09fb80de1 100644 --- a/storage/netapp/santricity/restapi/mode/storagevolumes.pm +++ b/storage/netapp/santricity/restapi/mode/storagevolumes.pm @@ -177,7 +177,7 @@ sub manage_selection { } } - $self->{cache_name} = 'netapp_santricity' . $self->{mode} . '_' . $options{custom}->get_hostname() . '_' . + $self->{cache_name} = 'netapp_santricity_' . $self->{mode} . '_' . $options{custom}->get_hostname() . '_' . (defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')) . '_' . (defined($self->{option_results}->{filter_storage_name}) ? md5_hex($self->{option_results}->{filter_storage_name}) : md5_hex('all')) . '_' . (defined($self->{option_results}->{filter_volume_name}) ? md5_hex($self->{option_results}->{filter_volume_name}) : md5_hex('all'));