Ignore:
Timestamp:
12/22/15 18:02:30 (9 years ago)
Author:
nanardon
Message:

properly add .pp to puppet file output

Location:
trunk/LATMOS-Accounts/lib/LATMOS/Accounts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Netzone.pm

    r1461 r1525  
    5050                get => sub { 
    5151                    $_[0]->object->_get_c_field('output') || 
    52                     $_[0]->object->id 
     52                    ($_[0]->object->id . (($_[0]->object->get_attributes('type') || '') eq 'puppet' ? '.pp' : '')) 
    5353                }, 
    5454            }, 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Buildnet.pm

    r1249 r1525  
    817817    $output .= "# End of data from database\n"; 
    818818    my $file = $self->_output_file($ozone); 
    819     $file =~ s/(\.pp)?$/\.pp/; # adding .pp extension if not existing 
    820819    if (open(my $handle, '>', $file)) { 
    821820        print $handle $output; 
Note: See TracChangeset for help on using the changeset viewer.