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):
201
"""
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