We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 490cb14 commit ea345fdCopy full SHA for ea345fd
2 files changed
ChangeLog
@@ -4,6 +4,7 @@ Revision history for Rex
4
[API CHANGES]
5
6
[BUG FIXES]
7
+ - Fix hostgroup membership list for all groups
8
9
[DOCUMENTATION]
10
lib/Rex/Group.pm
@@ -30,8 +30,11 @@ sub new {
30
31
for my $group ( keys %groups ) {
32
33
- if ( any { $_ eq $srv } $groups{$group}->get_servers ) {
34
- $srv->append_to_group($group);
+ for my $host ( $groups{$group}->get_servers ) {
+ if ( $host eq $srv ) {
35
+ $host->append_to_group( $self->{name} );
36
+ $srv->append_to_group($group);
37
+ }
38
}
39
40
0 commit comments