-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Cammarata wrote:
| On Fri, 27 Mar 2009 18:10:24 +0100, "Vreman, Peter - Acision"
| <peter.vreman(a)acision.com> wrote:
|> Maybe the it comes from the change to json, but the find for distro and
|> repo is not working:
|> <snip>
|>
|>
|> - if type(from_obj) == type(""):
|> + if type(from_obj) == type("") or type(from_obj) == unicode:
|> # FIXME: fnmatch is only used for string to string
|> comparisions
|> # which should cover most major usage, if not, this deserves
|> fixing
|> if fnmatch.fnmatch(from_obj.lower(), from_search.lower()):
|>
|>
|
|
| Funny, we were just talking about this in IRC...
|
Indeed, I also get the same error on cobblerd start and on system add
from a similar thing. John came up with a better solution, which is to
test isinstance(from_obj, basestring). Might be better to go with that
instead.
- --
Scott Henson
Red Hat CIS Operator
WVU Alum BSAE/BSME
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora -
http://enigmail.mozdev.org
iEYEARECAAYFAknNCkAACgkQZ+CEIfzQ+EqbJQCgifwUPdCbAaRB67xrbrdNd8Px
Ci4An1F8SJbpWWcnkJKDVhf0B3almKbh
=5pJ4
-----END PGP SIGNATURE-----