summaryrefslogtreecommitdiffstats
path: root/cobbler/action_enchant.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/action_enchant.py
parentcda9754a7ab3172ca45d083d7ee9d3bc7aa2c88e (diff)
downloadcobbler-5e1781852fb81a3263692eda3b4977c8fb761c1a.tar.gz
cobbler-5e1781852fb81a3263692eda3b4977c8fb761c1a.tar.xz
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/action_enchant.py')
-rw-r--r--cobbler/action_enchant.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/action_enchant.py b/cobbler/action_enchant.py
index 3bf80f85..4a54ebe5 100644
--- a/cobbler/action_enchant.py
+++ b/cobbler/action_enchant.py
@@ -40,9 +40,9 @@ class Enchant:
raise CX(_("enchant failed. no address specified"))
if system is None and profile is None:
raise CX(_("enchant failed. no profile specified"))
- if system is not None and self.config.systems().find(system) is None:
+ if system is not None and self.config.systems().find(name=system) is None:
raise CX(_("enchant failed. system not found"))
- if profile is not None and self.config.profiles().find(profile) is None:
+ if profile is not None and self.config.profiles().find(name=profile) is None:
raise CX(_("enchant failed. profile name not found"))