Changeset 354

Show
Ignore:
Timestamp:
01/17/07 22:41:06 (2 years ago)
Author:
miya
Message:

Assurer: Ignore hosts in yaml if plugin config has host setting.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • library/perl/trunk/Assurer/lib/Assurer.pm

    r352 r354  
    55use Carp; 
    66 
    7 use version; 
    8 our $VERSION = qv('0.0.1'); 
     7use version;our $VERSION = qv('0.0.1'); 
    98 
    109use base qw( Class::Accessor::Fast ); 
     
    8685 
    8786    for my $plugin ( @{ $self->{hooks}->{$hook} || [] } ) { 
    88         if ( $hook eq 'test' and $self->{hosts} ) { 
     87        if ( $hook eq 'test' and $self->{hosts} and !defined $plugin->{config}->{host} ) { 
    8988            for my $host ( @{ $self->{hosts} } ) { 
    9089                next if ( $plugin->{role} and ( !defined $host->{role} or $host->{role} ne $plugin->{role} ) );