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

Method start

extensions/MaaS/maas.py:194–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

192 succeed({"status": "success", "message": f"Instance deleted or not found ({sysid})"})
193
194 def start(self):
195 sysid = self.data.get("system_id")
196 if not sysid:
197 fail("system_id missing for start")
198 self.call_maas("POST", f"/machines/{sysid}/", {"op": "power_on"})
199 succeed({"status": "success", "power_state": "PowerOn"})
200
201 def stop(self):
202 sysid = self.data.get("system_id")

Callers

nothing calls this directly

Calls 4

call_maasMethod · 0.95
failFunction · 0.70
succeedFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected