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

Method restore

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

Source from the content-addressed store, hash-verified

460 raise
461
462 def restore(self):
463 try:
464 self.syscfg.svo.stopService("cgconfig")
465 self.syscfg.svo.enableService("cgconfig",forcestart=True)
466 self.syscfg.svo.stopService("cgred")
467 self.syscfg.svo.enableService("cgred")
468 return True
469 except:
470 logging.debug(formatExceptionInfo())
471 return False
472
473class nfsConfig(serviceCfgBase):
474 def __init__(self, syscfg):

Callers

nothing calls this directly

Calls 4

formatExceptionInfoFunction · 0.85
debugMethod · 0.80
enableServiceMethod · 0.65
stopServiceMethod · 0.45

Tested by

no test coverage detected