Remove host.create and host.destroy -- these never made any sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2007-02-20 22:46:21 +00:00
1 parent 1a84dd141d
commit c24f2b2bec
4 files changed
+2 -115

No files matched your search

-4
View File
@@ -680,8 +680,6 @@ class XendAPI(object):
return xen_api_success(XendNode.instance().host_metrics_uuid)
# object methods
def host_destroy(self, session, host_ref):
return xen_api_error(XEND_ERROR_UNSUPPORTED)
def host_disable(self, session, host_ref):
XendDomain.instance().set_allow_new_domains(False)
return xen_api_success_void()
@@ -715,8 +713,6 @@ class XendAPI(object):
# class methods
def host_get_all(self, session):
return xen_api_success((XendNode.instance().uuid,))
def host_create(self, session, struct):
return xen_api_error(XEND_ERROR_UNSUPPORTED)
def host_get_by_name_label(self, session, name):
if XendNode.instance().name == name:
return xen_api_success((XendNode.instance().uuid,))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.