Maintenance will be performed on,,, and tomorrow, 2020/08/04, starting at approximately 9am PDT. It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please direct any comments, questions or concerns to

Small fix to displayName handling in addTag

parent e14a424e
......@@ -1563,7 +1563,7 @@ class GraceDb(GsiRest):
is_superevent = kwargs.pop('is_superevent', False)
request_body = {'displayName': displayName}
request_body = {}
if is_superevent:
template = self.templates['superevent-log-tag-list-template']
uri_kwargs = {'superevent_id': object_id}
......@@ -1573,7 +1573,11 @@ class GraceDb(GsiRest):
template = self.templates['tag-template']
uri_kwargs = {'graceid': object_id, 'tag_name': tag_name}
method = 'PUT'
# Add displayName to requestBody, if applicable.
if displayName is not None:
request_body['displayName'] = displayName
uri_kwargs['N'] = N
uri = template.format(**uri_kwargs)
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