Update scripts, templates, add ldap logo
[buildfarm-server.git] / scripts / list_buildsystems.pl
index 4fa64d1bd3f493e363b3a75418e3286b76a6b083..f64bdbc599e6f45f0dec09f8286def1aedea3493 100755 (executable)
@@ -6,6 +6,7 @@ use DBI;
 use Data::Dumper;
 
 use vars qw($dbhost $dbname $dbuser $dbpass $dbport
+            $user_list_format
 );
 require "$ENV{BFConfDir}/BuildFarmWeb.pl";
 
@@ -27,11 +28,11 @@ my $sth = $db->prepare(q[
       ]);
 $sth->execute();
 
-my $format = "%-10s %-10s %-18s %-20s %-18s %-s\n";
-printf $format, "SysName", "Status", "Owner", "Email", "Distro", "Version";
+printf $user_list_format, "SysName", "Status", "Owner", "Email", "Distro", "Version";
 while (my $row = $sth->fetchrow_hashref)
 {
-  printf $format, $row->{name}, $row->{status}, $row->{sys_owner},
+  printf $user_list_format,
+                  $row->{name}, $row->{status}, $row->{sys_owner},
                   $row->{owner_email}, $row->{operating_system},
                   $row->{os_version};
 }