Skip to content

Commit 8eec9cc

Browse files
committed
Don't actually do a post to the rfc-editor's state sync interface for a publication request when not in production mode.
- Legacy-Id: 5773
1 parent 9e8f504 commit 8eec9cc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/sync/rfceditor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ def post_approved_draft(url, name):
461461
password = settings.RFC_EDITOR_SYNC_PASSWORD
462462
request.add_header("Authorization", "Basic %s" % base64.encodestring("%s:%s" % (username, password)).replace("\n", ""))
463463

464+
if settings.SERVER_MODE != "production":
465+
return ("OK", "")
466+
464467
text = error = ""
465468
try:
466469
f = urllib2.urlopen(request, data=urllib.urlencode({ 'approved_draft_name': name }), timeout=20)

0 commit comments

Comments
 (0)