Skip to content

Commit

Permalink
Merge pull request #11 from plesk/fix-database-status
Browse files Browse the repository at this point in the history
Fix check database is ready before perform any action
  • Loading branch information
SandakovMM authored Feb 19, 2024
2 parents 17fbb64 + b3d7db1 commit 21e06c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plesk.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def is_plesk_database_ready() -> bool:


def get_from_plesk_database(query: str) -> typing.List[str]:
if is_plesk_database_ready():
if not is_plesk_database_ready():
# This could be fine when we just restart the conversion/distupgrade tool
# However, let's log this anyway, it might be a good point to reveal problems
log.warn("Plesk database is not ready")
Expand Down

0 comments on commit 21e06c7

Please sign in to comment.