Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Fix dictionary comprehension for py2.6. Closes #571.
Browse files Browse the repository at this point in the history
  • Loading branch information
chambridge committed Jan 9, 2018
1 parent 7005bc4 commit f09315d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion rho.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: rho
Version: 0.0.31
Release: 1%{?dist}
Release: 2%{?dist}
Summary: An SSH system profiler

Group: Applications/Internet
Expand Down Expand Up @@ -63,6 +63,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/ansible/%{name}/roles/*

%changelog
* Tue Jan 9 2018 Christopher Hambridge <chambrid@redhat.com> 0.0.31-2
- Enhancements to handle target system timeouts (chambrid@redhat.com)
- Enhancements to capture JBoss products installation state (nlavine@redhat.com)
- Bug fix to resolve RHEL6 install support (chambrid@redhat.com)
* Wed Nov 29 2017 Noah Lavine <nlavine@redhat.com> 0.0.31-1
- Enhancements to capture presence of JBoss Fuse from init subscriptions
- Enhancements to find common JBoss Fuse files using locate command
Expand Down
5 changes: 3 additions & 2 deletions rho/inventory_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ def hosts_by_group(yml_dict):
{'group name': ['host1', 'host2', ...],
... }
"""
hosts_by_group_dict = dict((group, yml_dict[group]['hosts'].keys())
for i, group in enumerate(yml_dict.keys()))

return {group: list(yml_dict[group]['hosts'].keys())
for group in yml_dict.keys()}
return hosts_by_group_dict


def process_host_vars(facts_to_collect, vars_by_host):
Expand Down

0 comments on commit f09315d

Please sign in to comment.