summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_systems.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-08-15 16:31:31 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-08-15 16:31:31 -0400
commit5e1781852fb81a3263692eda3b4977c8fb761c1a (patch)
treeb21cbb7fbfc4f0fcc2f5c37f1dc8da10cec85068 /cobbler/collection_systems.py
parentcda9754a7ab3172ca45d083d7ee9d3bc7aa2c88e (diff)
downloadthird_party-cobbler-5e1781852fb81a3263692eda3b4977c8fb761c1a.tar.gz
third_party-cobbler-5e1781852fb81a3263692eda3b4977c8fb761c1a.tar.xz
third_party-cobbler-5e1781852fb81a3263692eda3b4977c8fb761c1a.zip
Ben Riggs patch to allow find to take arbitrary variables plus a reworking
of find (mpd) to add some error checking, list returns, and other semi-useful stuff. Plus tests and an optomization to allow name=foo as the only parameter to be just as fast as before.
Diffstat (limited to 'cobbler/collection_systems.py')
-rw-r--r--cobbler/collection_systems.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/collection_systems.py b/cobbler/collection_systems.py
index 5ffcea5..58f9e13 100644
--- a/cobbler/collection_systems.py
+++ b/cobbler/collection_systems.py
@@ -49,7 +49,7 @@ class Systems(collection.Collection):
Remove element named 'name' from the collection
"""
name = name.lower()
- if self.find(name):
+ if self.find(name=name):
if with_delete:
self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/system/pre/*")
lite_sync = action_litesync.BootLiteSync(self.config)