Skip to content

Commit

Permalink
Merge pull request #8 from ARGOeu-Metrics/devel
Browse files Browse the repository at this point in the history
Version 0.6
  • Loading branch information
themiszamani authored Apr 12, 2022
2 parents 3dc0908 + 2399b43 commit 2cc37cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion argo-probe-eudat-b2share.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: argo-probe-eudat-b2share
Version: 0.5
Version: 0.6
Release: 1%{?dist}
Summary: Monitoring scripts that check the functionalities of B2SHARE
License: GPLv3+
Expand Down
15 changes: 8 additions & 7 deletions check_b2share.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ def get_dict_from_url(url, verify_tls_cert=False, verbosity=False):

rec_with_files_url = None
for hit in search_results['hits']['hits']:
# Check if there are files in the record
if len(hit['files']) > 0:
# NTS: Could throw KeyError if there is something
# seriously wrong or B2SHARE REST API responses have
# changed.
rec_with_files_url = hit['links']['self']
break
if 'files' in hit:
# Check if there are files in the record
if len(hit['files']) > 0:
# NTS: Could throw KeyError if there is something
# seriously wrong or B2SHARE REST API responses have
# changed.
rec_with_files_url = hit['links']['self']
break

if rec_with_files_url:

Expand Down

0 comments on commit 2cc37cb

Please sign in to comment.