From 2683c4a7b77468a23e1a2d68a4f5b0fee97baea8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 6 May 2020 16:27:31 +0200 Subject: [PATCH] Fix #1807 --- storage/netapp/santricity/restapi/custom/api.pm | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/storage/netapp/santricity/restapi/custom/api.pm b/storage/netapp/santricity/restapi/custom/api.pm index 227aaeb99..b74f810c7 100644 --- a/storage/netapp/santricity/restapi/custom/api.pm +++ b/storage/netapp/santricity/restapi/custom/api.pm @@ -182,19 +182,6 @@ sub request_api { sub execute_storages_request { my ($self, %options) = @_; - my $content = do { - local $/ = undef; - if (!open my $fh, "<", '/home/qgarnier/clients/plugins/todo/santricity/test-storages.txt') { - $self->{output}->add_option_msg(short_msg => "Could not open file $self->{option_results}->{$_} : $!"); - $self->{output}->option_exit(); - } - <$fh>; - }; - eval { - $content = JSON::XS->new->utf8->decode($content); - }; - return $content; - my $storages = $self->request_api(name => 'storages', endpoint => '/storage-systems'); return $storages if (!defined($options{endpoint}));