diff options
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Metadata.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py index d4f25708e..0fff17bc9 100644 --- a/src/lib/Server/Metadata.py +++ b/src/lib/Server/Metadata.py @@ -38,8 +38,6 @@ class Metadata(object): def __cmp__(self, other): fields = ['image', 'classes', 'bundles', 'attributes', 'hostname'] - sum1 = [len(field) for field in fields if getattr(self,field)][0] - sum1 = [x for x in range(len(fields)) if getattr(self, fields[x])][0] sum2 = [x for x in range(len(fields)) if getattr(other, fields[x])][0] return sum1 < sum2 |