Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion golioth/golioth.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,11 @@ async def upload(self,
'content': b64encode(path.open('rb').read()).decode(),
'version': version,
'package': package,
'blueprintId': blueprint_id
}

if blueprint_id is not None:
json['blueprintId'] = blueprint_id

try:
response = await self.project.client.post('artifacts', json=json)
except httpx.HTTPStatusError as err:
Expand Down