aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-10-30 10:33:57 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-10-30 10:33:57 +0100
commit60f8e79f8e10788e63fca9dd36bf4e5234ec7491 (patch)
treee31cb5438d074d027e5d39067b7c30b1d340021f
parent55f294f450f8bde15176bd251a37c6a2a0b90123 (diff)
downloadbugzilla-triage-60f8e79f8e10788e63fca9dd36bf4e5234ec7491.tar.gz
Make script work even when no credentials are stored!1.4.91
Fixes #117.
-rw-r--r--lib/libbugzilla.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index 18cd2b5..e30efef 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -340,6 +340,10 @@ function loginToAllBugzillas(callback) {
// Increment call counter
loginCallsCounter++;
});
+ if (loginCallsCounter == 0) {
+ debug("No credentials!");
+ callback(config);
+ }
},
onError: function onError() {
console.error("No credentials were found for " + bugzillaHost + "!");