summaryrefslogtreecommitdiffstats
path: root/cobbler/remote.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-01-31 13:20:37 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-01-31 13:20:37 -0500
commit424f947cf7622dd8aa987917f83170dc5bfbcd9f (patch)
tree34397da01e1c990f5863536e4e9e389372095d1f /cobbler/remote.py
parent2f9fd2c61a18661adb007d46f1f83ac12154f406 (diff)
downloadthird_party-cobbler-424f947cf7622dd8aa987917f83170dc5bfbcd9f.tar.gz
third_party-cobbler-424f947cf7622dd8aa987917f83170dc5bfbcd9f.tar.xz
third_party-cobbler-424f947cf7622dd8aa987917f83170dc5bfbcd9f.zip
Recursive deletes are now possible with --recursive. Web UI still needs to take advantage of this.
Diffstat (limited to 'cobbler/remote.py')
-rw-r--r--cobbler/remote.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cobbler/remote.py b/cobbler/remote.py
index c65bd83..221cf0c 100644
--- a/cobbler/remote.py
+++ b/cobbler/remote.py
@@ -863,24 +863,24 @@ class CobblerReadWriteXMLRPCInterface(CobblerXMLRPCInterface):
obj = self.__get_object(object_id)
return self.__call_method(obj, attribute, arg)
- def remove_distro(self,name,token):
+ def remove_distro(self,name,token,recursive=1):
"""
Deletes a distro from a collection. Note that this just requires the name
of the distro, not a handle.
"""
self.log("remove_distro",name=name,token=token)
self.check_access(token, "remove_distro", name)
- rc = self.api._config.distros().remove(name)
+ rc = self.api._config.distros().remove(name,recursive)
return rc
- def remove_profile(self,name,token):
+ def remove_profile(self,name,token,recursive=1):
"""
Deletes a profile from a collection. Note that this just requires the name
of the profile, not a handle.
"""
self.log("remove_profile",name=name,token=token)
self.check_access(token, "remove_profile", name)
- rc = self.api._config.profiles().remove(name)
+ rc = self.api._config.profiles().remove(name,recursive)
return rc
def remove_system(self,name,token):