diff options
author | Roger Pau Monne <roger.pau@entel.upc.edu> | 2011-12-15 18:55:46 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@entel.upc.edu> | 2011-12-15 18:55:46 +0100 |
commit | 0b5c5ae1bdc2152016f72a7c00706fefc95e5b39 (patch) | |
tree | 81e32a85b0dae044a110ecc20a912dfa558631ae /tools/python/xen | |
parent | 8e4cd77b8ad4bb9e289a64c867d99bc7d30c22eb (diff) | |
download | xen-0b5c5ae1bdc2152016f72a7c00706fefc95e5b39.tar.gz xen-0b5c5ae1bdc2152016f72a7c00706fefc95e5b39.tar.bz2 xen-0b5c5ae1bdc2152016f72a7c00706fefc95e5b39.zip |
libxl: remove force parameter from libxl_domain_destroy
Since a destroy is considered a forced shutdown, there's no point in
passing a force parameter. All the occurences of this function have
been replaced with the proper syntax.
Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/python/xen')
-rw-r--r-- | tools/python/xen/lowlevel/xl/xl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/python/xen/lowlevel/xl/xl.c b/tools/python/xen/lowlevel/xl/xl.c index aadbee877b..041daadc81 100644 --- a/tools/python/xen/lowlevel/xl/xl.c +++ b/tools/python/xen/lowlevel/xl/xl.c @@ -437,10 +437,10 @@ static PyObject *pyxl_domain_shutdown(XlObject *self, PyObject *args) static PyObject *pyxl_domain_destroy(XlObject *self, PyObject *args) { - int domid, force = 1; - if ( !PyArg_ParseTuple(args, "i|i", &domid, &force) ) + int domid; + if ( !PyArg_ParseTuple(args, "i", &domid) ) return NULL; - if ( libxl_domain_destroy(self->ctx, domid, force) ) { + if ( libxl_domain_destroy(self->ctx, domid) ) { PyErr_SetString(xl_error_obj, "cannot destroy domain"); return NULL; } |