/[pxelator]/lib/PXElator/httpd.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/httpd.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 542 by dpavlin, Sat Oct 9 12:34:44 2010 UTC revision 543 by dpavlin, Sat Oct 9 12:38:00 2010 UTC
# Line 365  warn "XXX pids = ", dump( $daemons::pids Line 365  warn "XXX pids = ", dump( $daemons::pids
365                          my $conf = client::all_conf( $ip );                          my $conf = client::all_conf( $ip );
366                          my $config = delete $conf->{config};                          my $config = delete $conf->{config};
367    
368                          my @editable = ( qw/hostname config homepage/, grep { m{^\Q$config\E} } keys %$conf );                          my @editable = ( qw/hostname config homepage/ );
369                            # add params with config prefix if config exists
370                            push @editable, grep { m{^\Q$config\E} } keys %$conf if $config;
371                          my @update = grep { defined $param->{$_} } @editable;                          my @update = grep { defined $param->{$_} } @editable;
372                          if ( @update ) {                          if ( @update ) {
373                                  client::conf( $ip, $_ => $param->{$_} ) foreach @update;                                  client::conf( $ip, $_ => $param->{$_} ) foreach @update;

Legend:
Removed from v.542  
changed lines
  Added in v.543

  ViewVC Help
Powered by ViewVC 1.1.26