We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cbe289 commit 82f8069Copy full SHA for 82f8069
1 file changed
bugzilla/base.py
@@ -164,6 +164,10 @@ class Bugzilla(object):
164
[bugzilla.yoursite.com]
165
user = username
166
password = password
167
+ Or
168
+ [bugzilla.yoursite.com]
169
+ api_key = key
170
+
171
You can also use the [DEFAULT] section to set defaults that apply to
172
any site without a specific section of its own.
173
Be sure to set appropriate permissions on bugzillarc if you choose to
@@ -458,7 +462,10 @@ def readconfig(self, configpath=None):
458
462
return
459
463
460
464
for key, val in cfg.items(section):
461
- if key == "user":
465
+ if key == "api_key":
466
+ log.debug("bugzillarc: setting api_key")
467
+ self.api_key = val
468
+ elif key == "user":
469
log.debug("bugzillarc: setting user=%s", val)
470
self.user = val
471
elif key == "password":
0 commit comments