diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-10-30 10:33:57 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-10-30 10:33:57 +0100 |
commit | 60f8e79f8e10788e63fca9dd36bf4e5234ec7491 (patch) | |
tree | e31cb5438d074d027e5d39067b7c30b1d340021f | |
parent | 55f294f450f8bde15176bd251a37c6a2a0b90123 (diff) | |
download | bugzilla-triage-60f8e79f8e10788e63fca9dd36bf4e5234ec7491.tar.gz |
Make script work even when no credentials are stored!1.4.91
Fixes #117.
-rw-r--r-- | lib/libbugzilla.js | 4 |
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 + "!"); |