-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Scott Henson wrote: | Attached is a patch to fix this problem using isinstance in the three places that I have seen this cause problems. | This as well. Just to be on the safe side. - -------------------------
_______________________________________________ cobbler-devel mailing list cobbler-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler-devel
- -- Scott Henson Red Hat CIS Operator WVU Alum BSAE/BSME
From 0f181b6159f46cc2dfbc0952f5c3c99bb478ace1 Mon Sep 17 00:00:00 2001
From: Scott Henson shenson@redhat.com Date: Fri, 27 Mar 2009 14:31:45 -0400 Subject: [PATCH] This use might cause problems as well
--- cobbler/item.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cobbler/item.py b/cobbler/item.py index 2493c45..1913d78 100644 --- a/cobbler/item.py +++ b/cobbler/item.py @@ -306,7 +306,7 @@ class Item(serializable.Serializable): return False
else: - if type(from_search) == type(""): + if isinstance(from_search, basestring): if type(from_obj) == type([]): from_search = utils.input_string_or_list(from_search,delim=',') for x in from_search: