diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-08-15 16:31:31 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-08-15 16:31:31 -0400 |
commit | 5e1781852fb81a3263692eda3b4977c8fb761c1a (patch) | |
tree | b21cbb7fbfc4f0fcc2f5c37f1dc8da10cec85068 /cobbler/action_enchant.py | |
parent | cda9754a7ab3172ca45d083d7ee9d3bc7aa2c88e (diff) | |
download | cobbler-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.py | 4 |
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")) |