Skip to content

Commit 81bda3a

Browse files
committed
More processing required for tags on post,put or patch
1 parent d67ac0e commit 81bda3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

actions/lib/action.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def make_request(self, endpoint_uri, http_action, **kwargs):
3838

3939
# transform `tags` if present
4040
if kwargs.get("tags"):
41-
kwargs["tags"] = ",".join(kwargs["tags"])
41+
if http_action in ['post','put','patch']:
42+
kwargs["tags"] = [{"slug": x} for x in kwargs["tags"]]
43+
else:
44+
kwargs["tags"] = ",".join(kwargs["tags"])
4245
self.logger.debug("tags transformed to {}".format(kwargs["tags"]))
4346

4447
# strip values which have a None value if we are making a write request

0 commit comments

Comments
 (0)