Added docstring to create_module_types

This commit is contained in:
David Mc Ken 2022-09-08 10:50:49 -04:00
parent 9115a7d310
commit 6cd282acd8

View File

@ -666,6 +666,15 @@ def createDeviceTypes(deviceTypes, nb):
dt.id, nb)
def create_module_types(module_types, nb):
'''Create missing module types.
Args:
module_types: yaml data from repo.
nb: pynetbox API instance
Returns:
None
'''
all_module_types = {}
for curr_nb_mt in nb.dcim.module_types.all():