summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-11-19 07:20:10 +0100
committerByron Jones <glob@mozilla.com>2015-11-19 07:20:10 +0100
commit94800e1e2badeb0d10960cad12ca595e649674d6 (patch)
treeadb956870becc1acf84f0de73614999bb8188603
parent195a21ea2cfc41759d8aeb4529ae4ce61376faf8 (diff)
downloadbugzilla-94800e1e2badeb0d10960cad12ca595e649674d6.tar.gz
bugzilla-94800e1e2badeb0d10960cad12ca595e649674d6.tar.xz
Bug 1225831 - generate_bmo_data.pl should accept the admin email address as an optional argument
-rwxr-xr-xdocker/generate_bmo_data.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/generate_bmo_data.pl b/docker/generate_bmo_data.pl
index 90294c080..d5d7f0eef 100755
--- a/docker/generate_bmo_data.pl
+++ b/docker/generate_bmo_data.pl
@@ -27,7 +27,8 @@ my $dbh = Bugzilla->dbh;
# set Bugzilla usage mode to USAGE_MODE_CMDLINE
Bugzilla->usage_mode(USAGE_MODE_CMDLINE);
-Bugzilla->set_user(Bugzilla::User->new({ name => 'admin@mozilla.bugs' }));
+my $admin_email = shift || 'admin@mozilla.bugs';
+Bugzilla->set_user(Bugzilla::User->check({ name => $admin_email }));
##########################################################################
# Set Default User Preferences