diff options
Diffstat (limited to 'simplejenkinsapi')
-rw-r--r-- | simplejenkinsapi/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simplejenkinsapi/api.py b/simplejenkinsapi/api.py index 9c6c66b..a2f616d 100644 --- a/simplejenkinsapi/api.py +++ b/simplejenkinsapi/api.py @@ -78,7 +78,7 @@ class Jenkins(object): logging.debug('HTTP reason: %s' % resp.reason) logging.debug('HTTP text: %s' % repr(text)) - ok = [httplib.OK, httplib.FOUND] + ok = [httplib.OK, httplib.CREATED, httplib.FOUND] if resp.status not in ok: # pragma: no cover raise httplib.HTTPException('Error %d (%s) from server:\n%s' % (resp.status, resp.reason, text)) |