'Gets list of units from a dependency.'

def _get_units(self, dependency):

    dep_list = []
    if isinstance(dependency, dict):
        dep_list.extend(dependency.values())
    else:
        dep_list.append(dependency)
    return [self._validate_subordinate(sub) for sub in dep_list]
