Make zulip-ec2-configure-interfaces pass mypy check.

This commit is contained in:
Eklavya Sharma 2016-07-24 12:52:58 +05:30
parent 0a5aa2ccc7
commit 3d87c376c2
2 changed files with 2 additions and 4 deletions

View File

@ -76,7 +76,7 @@ log.addHandler(logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHa
log.addHandler(logging.StreamHandler())
log.info("Starting.")
macs = boto.utils.get_instance_metadata()["network"]["interfaces"]["macs"]
macs = boto.utils.get_instance_metadata()["network"]["interfaces"]["macs"] # type: ignore # boto.utils has no stubs
ids = [int(macdata['device-number']) for macdata in macs.values()]
ifaces = [iface for iface in netifaces.interfaces() if ":" not in iface and iface != "lo"]

View File

@ -71,9 +71,7 @@ tools/update-deployment
tools/zulip-export/zulip-export
""".split()
exclude_scripts_py2 = """
puppet/zulip_internal/files/zulip-ec2-configure-interfaces
""".split()
exclude_scripts_py2 = []
exclude_scripts_py3 = """
bots/process_ccache