Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org starting at around 10am CST on Tuesday 28 January 2020. It is expected to take around an hour and there will be a short period, around five minutes, of downtime towards the end of the maintenance window. In addition the GitLab-CI runners will be paused starting at around 9am CST in order to be updated.

Commit cf1c2f59 authored by Tanner Prestegard's avatar Tanner Prestegard

Small fix to displayName handling in addTag

parent e14a424e
...@@ -1563,7 +1563,7 @@ class GraceDb(GsiRest): ...@@ -1563,7 +1563,7 @@ class GraceDb(GsiRest):
201 201
""" """
is_superevent = kwargs.pop('is_superevent', False) is_superevent = kwargs.pop('is_superevent', False)
request_body = {'displayName': displayName} request_body = {}
if is_superevent: if is_superevent:
template = self.templates['superevent-log-tag-list-template'] template = self.templates['superevent-log-tag-list-template']
uri_kwargs = {'superevent_id': object_id} uri_kwargs = {'superevent_id': object_id}
...@@ -1573,7 +1573,11 @@ class GraceDb(GsiRest): ...@@ -1573,7 +1573,11 @@ class GraceDb(GsiRest):
template = self.templates['tag-template'] template = self.templates['tag-template']
uri_kwargs = {'graceid': object_id, 'tag_name': tag_name} uri_kwargs = {'graceid': object_id, 'tag_name': tag_name}
method = 'PUT' method = 'PUT'
# Add displayName to requestBody, if applicable.
if displayName is not None:
request_body['displayName'] = displayName
uri_kwargs['N'] = N uri_kwargs['N'] = N
uri = template.format(**uri_kwargs) uri = template.format(**uri_kwargs)
return self.post_or_put_or_patch(method, uri, body=request_body) return self.post_or_put_or_patch(method, uri, body=request_body)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment