File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -385,16 +385,10 @@ def clear_snapshots_and_repositories(client)
385
385
return unless ( repositories = client . snapshot . get_repository )
386
386
387
387
repositories . each_key do |repository |
388
- responses = client . snapshot . get ( repository : repository , snapshot : '_all' ) [ 'responses' ]
389
- next unless responses
390
388
391
- responses . each do |response |
392
- response [ 'snapshots' ] . each do |snapshot |
393
- client . snapshot . delete ( repository : repository , snapshot : snapshot [ 'snapshot' ] )
394
- end
395
- end
389
+ client . snapshot . delete ( repository : repository , snapshot : '*' , ignore : 404 ) if ( repositories [ repository ] [ 'type' ] == 'fs' )
396
390
397
- client . snapshot . delete_repository ( repository : repository )
391
+ client . snapshot . delete_repository ( repository : repository , ignore : 404 )
398
392
end
399
393
end
400
394
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ class Test
32
32
#
33
33
# @since 6.2.0
34
34
class TaskGroup
35
- attr_reader :exception
36
- attr_reader :response
37
- attr_reader :test
35
+ attr_reader :exception , :response , :test
38
36
39
37
# Initialize a TaskGroup object.
40
38
#
You can’t perform that action at this time.
0 commit comments