Status command fix

When there are processes running on localhost (fallback), can't use status command because it expects servername field which is missing for locahost (fallback)
This commit is contained in:
Aleksa Siriški 2022-11-17 18:52:12 +01:00 committed by GitHub
parent ca12fdae01
commit 35743e10eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -608,6 +608,7 @@ def run_control(config):
if len(fallback_processes) > 0:
host_mappings[0] = {
"hostname": "localhost (fallback)",
"servername": "localhost (fallback)",
"weight": 0,
"current_state": "fallback",
"commands": fallback_processes,