Modified: CalendarServer/trunk/twistedcaldav/stdconfig.py (15480 => 15481)
--- CalendarServer/trunk/twistedcaldav/stdconfig.py 2016-03-22 16:44:04 UTC (rev 15480)
+++ CalendarServer/trunk/twistedcaldav/stdconfig.py 2016-03-22 21:40:24 UTC (rev 15481)
@@ -1679,15 +1679,16 @@
else:
continue
- if not service[protocol]["Topic"]:
- try:
- getAPNTopicFromConfig(protocol, accountName, service[protocol])
- except ValueError as e:
- log.error(e)
+ if service[protocol].Enabled:
+ if not service[protocol]["Topic"]:
+ try:
+ getAPNTopicFromConfig(protocol, accountName, service[protocol])
+ except ValueError as e:
+ log.error(e)
- # If we already have the cert passphrase, don't fetch it again
- if not service[protocol]["Passphrase"]:
- log.info("{p} APNS certificate passphrase not found in keychain", p=protocol)
+ # If we already have the cert passphrase, don't fetch it again
+ if not service[protocol]["Passphrase"]:
+ log.info("{p} APNS certificate passphrase not found in keychain", p=protocol)