fix appending flags for all protocols

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-11-04 16:08:28 +01:00
parent 8b8e58f96c
commit 1a8a22890a
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 4 additions and 4 deletions

View File

@ -81,10 +81,10 @@ class NimWakuStatusCheck(StatusCheck):
'--address={}'.format(self.address),
'--timeout={}'.format(self.timeout-1),
'--log-level={}'.format(self.log_level) ]
+ ['--protocol=relay'] if self.proto_relay else []
+ ['--protocol=store'] if self.proto_store else []
+ ['--protocol=filter'] if self.proto_filter else []
+ ['--protocol=lightpush'] if self.proto_lightpush else []
+ (['--protocol=relay'] if self.proto_relay else [])
+ (['--protocol=store'] if self.proto_store else [])
+ (['--protocol=filter'] if self.proto_filter else [])
+ (['--protocol=lightpush'] if self.proto_lightpush else [])
)
log.info('Checking: %s', self.name)