Explorar o código

Cast this to int.

Joe Clarke %!s(int64=2) %!d(string=hai) anos
pai
achega
54aff3ae87
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      setup-meraki-nets.py

+ 1 - 1
setup-meraki-nets.py

@@ -128,7 +128,7 @@ def main():
                 nerrors += 1
                 continue
 
-            shape_ret = net_obj.apply_shaping(network["client_limit"])
+            shape_ret = net_obj.apply_shaping(int(network["client_limit"]))
             if shape_ret:
                 print("{}update: added traffic shaping to network {}{}".format(Fore.YELLOW, nname, Style.RESET_ALL))
             else: