Katello/katello — pull request #518 by bbuckingham (2012-08-27 14:29:20+00:00)
Title: 842569 - system groups - fix for TypeError on status of errata install

This commit addresses the "TypeError" that would occur when a user
when a user would view the status of an errata install on a system
group where only a subset of the systems needed an update.

The cause of the issue was in the format of the response from
pulp. Typically, if there is a change needed to a system, pulp
returns a hash dictionary with details on the changes to
the system; however, if no change is needed on the system,
pulp returns an array. The TypeError was due to the fact that
katello expected the hash vs the array. Based on discussion with
pulp devs, it has been stated that if we receive an array in the
status, we can treat that as "no changes have been made to the
system".

As part of making this change, ran several tests using:
system group - errata install, pkg install/update/remove
system - errata install, pkg isntall/update/remove, pkg group install/remove