fix(mikrotik_router): ensure proper spacing in combined changelogs

This commit is contained in:
Sergey Krashevich 2024-04-19 20:18:08 +03:00
parent b9d87cd6aa
commit 502bebb766
No known key found for this signature in database
GPG key ID: 625171324E7D3856

View file

@ -103,7 +103,7 @@ class MikrotikRouterOSUpdate(MikrotikEntity, UpdateEntity):
changelogs = await asyncio.gather(*tasks) changelogs = await asyncio.gather(*tasks)
# Combine all non-empty changelogs, maintaining reverse order # Combine all non-empty changelogs, maintaining reverse order
combined_changelogs = "\n".join(filter(None, changelogs)) combined_changelogs = "\n\n".join(filter(None, changelogs))
return combined_changelogs.replace("*) ", "- ") return combined_changelogs.replace("*) ", "- ")
except Exception as e: except Exception as e: