MCPcopy Create free account
hub / github.com/apache/cloudstack / restore

Method restore

python/lib/cloudutils/serviceConfig.py:422–431  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

420 raise
421
422 def restore(self):
423 try:
424 if self.netMgrRunning:
425 self.syscfg.svo.enableService("NetworkManager")
426 self.syscfg.svo.startService("NetworkManager")
427 bash("service network restart")
428 return True
429 except:
430 logging.debug(formatExceptionInfo())
431 return False
432
433class cgroupConfig(serviceCfgBase):
434 def __init__(self, syscfg):

Callers

nothing calls this directly

Calls 5

bashClass · 0.85
formatExceptionInfoFunction · 0.85
debugMethod · 0.80
enableServiceMethod · 0.65
startServiceMethod · 0.45

Tested by

no test coverage detected