mirror of https://github.com/zulip/zulip.git
Make zulip-ec2-configure-interfaces pass mypy check.
This commit is contained in:
parent
0a5aa2ccc7
commit
3d87c376c2
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue