We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9fef83 commit 76d2991Copy full SHA for 76d2991
1 file changed
src/apps/vmware/vsphere8/custom/api.pm
@@ -293,6 +293,9 @@ sub get_all_acq_specs {
293
294
# store it in the cache for future runs
295
$self->{acq_specs_cache}->write(data => { updated => time(), acq_specs => $self->{all_acq_specs} });
296
+ # in some cases the statefile was corrupted and the plugin was stuck
297
+ # only return a result if it looks ok, else we store an empty array
298
+ $self->{all_acq_specs} = [] unless ref($self->{all_acq_specs}) eq 'ARRAY' && @{$self->{all_acq_specs}};
299
return $self->{all_acq_specs};
300
}
301
0 commit comments