Skip to content

Commit f2c4ed9

Browse files
committed
Changed additional places to use IANA sync settings from settings.py
- Legacy-Id: 5681
1 parent 53b1719 commit f2c4ed9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

ietf/bin/iana-changes-updates

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ syslog.openlog(os.path.basename(__file__), syslog.LOG_PID, syslog.LOG_USER)
4646

4747
from ietf.sync.iana import *
4848

49-
syslog.syslog("Updating history log with new changes from IANA from %s, period %s - %s" % (CHANGES_URL, start, end))
49+
syslog.syslog("Updating history log with new changes from IANA from %s, period %s - %s" % (settings.IANA_SYNC_CHANGES_URL, start, end))
5050

5151
t = start
5252
while t < end:
5353
# the IANA server doesn't allow us to fetch more than a certain
5454
# period, so loop over the requested period and make multiple
5555
# requests if necessary
5656

57-
text = fetch_changes_json(CHANGES_URL, t, min(end, t + MAX_INTERVAL_ACCEPTED_BY_IANA))
57+
text = fetch_changes_json(settings.IANA_SYNC_CHANGES_URL, t, min(end, t + MAX_INTERVAL_ACCEPTED_BY_IANA))
5858
changes = parse_changes_json(text)
5959
added_events, warnings = update_history_with_changes(changes, send_email=options.send_email)
6060

ietf/sync/iana.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
from ietf.idrfc.mails import email_owner, email_state_changed, email_authors
1010
from ietf.utils.timezone import *
1111

12-
PROTOCOLS_URL = "http://www.iana.org/protocols/"
13-
CHANGES_URL = "http://datatracker.dev.icann.org:8080/data-tracker/changes"
12+
#PROTOCOLS_URL = "http://www.iana.org/protocols/"
13+
#CHANGES_URL = "http://datatracker.dev.icann.org:8080/data-tracker/changes"
1414

1515
def fetch_protocol_page(url):
16-
f = urllib2.urlopen(PROTOCOLS_URL)
16+
f = urllib2.urlopen(settings.IANA_SYNC_PROTOCOLS_URL)
1717
text = f.read()
1818
f.close()
1919
return text

0 commit comments

Comments
 (0)