Subversion Repositories camp_sysinfo_client_3

Rev

Rev 219 | Rev 227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 219 Rev 223
Line 199... Line 199...
199
   push @return, 'No host name given' unless $config->{'hostname'};
199
   push @return, 'No host name given' unless $config->{'hostname'};
200
   $config->{'serialNumber'} = $config->{'UUID'} if $config->{'serialNumber'} eq 'NotSpecified';
200
   $config->{'serialNumber'} = $config->{'UUID'} if $config->{'serialNumber'} eq 'NotSpecified';
201
   push @return, 'No serial number given' unless $config->{'serialNumber'};
201
   push @return, 'No serial number given' unless $config->{'serialNumber'};
202
   push @return, 'No UUID given' unless $config->{'UUID'};
202
   push @return, 'No UUID given' unless $config->{'UUID'};
203
   # if scriptDirs not defined, use installdir/scripts
203
   # if scriptDirs not defined, use installdir/scripts
204
   $config->{'scriptDirs'} = [ $binDir . '/scripts' ] unless $config->{'scriptDirs'};
204
   $config->{'scriptDirs'} = [ $binDir . '/scripts' ] unless @{$config->{'scriptDirs'}};
205
   # if moduleDirs not defined, use installdir/modules
205
   # if moduleDirs not defined, use installdir/modules
206
   $config->{'moduleDirs'} = [ $binDir . '/modules' ] unless $config->{'moduleDirs'};
206
   $config->{'moduleDirs'} = [ $binDir . '/modules' ] unless defined $config->{'moduleDirs'};
207
 
207
 
208
   # ensure we have the default SaveLocal transport defined
208
   # ensure we have the default SaveLocal transport defined
209
   unless ( defined $config->{'transports'}{'99'} ) {
209
   unless ( defined $config->{'transports'}{'99'} ) {
210
      $config->{'transports'}{'99'} = {
210
      $config->{'transports'}{'99'} = {
211
                         'name'=> 'SaveLocal',
211
                         'name'=> 'SaveLocal',