Skip to content
Permalink
Browse files

Avoid running "svcmgr status" on init when there are no objects deployed

Saves a execv and an alarming message from the "svcmgr status"
  • Loading branch information...
cvaroqui committed Jun 28, 2019
1 parent 396cbf9 commit 34aa14e6e6386ef495675a18b5cf3f1b5035195a
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/osvcd_mon.py
@@ -680,7 +680,12 @@ def service_thaw(self, svcpath, slaves=False):
)

def services_init_status(self):
proc = self.service_command(",".join(list_services()), ["status", "--parallel", "--refresh"], local=False)
svcs = list_services()
if not svcs:
self.log.info("no objects to get an initial status from")
self.services_init_status_callback()
return
proc = self.service_command(",".join(svcs), ["status", "--parallel", "--refresh"], local=False)
self.push_proc(
proc=proc,
on_success="services_init_status_callback",

0 comments on commit 34aa14e

Please sign in to comment.
You can’t perform that action at this time.