@@ -237,20 +237,14 @@ def dispatch(version, montests, parameters, start_response, environ):
237
237
238
238
if doupdated :
239
239
if 'last_snapshot' not in repo_status :
240
- # there was a bug prior to cvmfs_server 2.7.3 that
241
- # caused garbage collection to remove the last_snapshot
242
- # entry, so use last_gc instead if it exists
243
- if 'last_gc' in repo_status :
244
- repo_status ['last_snapshot' ] = repo_status ['last_gc' ]
245
- else :
246
- # no complete snapshot, look up snapshotting status
247
- try :
248
- url2 = repourl + '/.cvmfs_is_snapshotting'
249
- request = urllib_request .Request (url2 , headers = headers )
250
- snapshotting_string = urllib_request .urlopen (request ).read ().decode ('utf-8' )
251
- repo_status ['snapshotting_since' ] = snapshotting_string
252
- except :
253
- pass
240
+ # no complete snapshot, look up snapshotting status
241
+ try :
242
+ url2 = repourl + '/.cvmfs_is_snapshotting'
243
+ request = urllib_request .Request (url2 , headers = headers )
244
+ snapshotting_string = urllib_request .urlopen (request ).read ().decode ('utf-8' )
245
+ repo_status ['snapshotting_since' ] = snapshotting_string
246
+ except :
247
+ pass
254
248
results .append (cvmfsmon_updated .runtest (repo , limits , repo_status , updated_slowrepos , errormsg ))
255
249
if domontest ('gc' , montests ):
256
250
results .append (cvmfsmon_gc .runtest (repo , limits , repo_status , errormsg ))
0 commit comments