You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/01/10 19:39:32 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue #4285: Kickstart script broken

ocket8888 opened a new issue #4285: Kickstart script broken
URL: https://github.com/apache/trafficcontrol/issues/4285
 
 
   ## I'm submitting a ...
   - bug report
   
   ## Traffic Control components affected ...
   - tools (`kickstart_create_network_line.py`)
   
   ## Current behavior:
   There's a bug in the script:
   ```
     File "./kickstart_create_network_line.py", line 25
       from __future__ import print_function
   SyntaxError: from __future__ imports must occur at the beginning of the file
   ```
   
   ## Expected / new behavior:
   There shouldn't be a bug in the script
   
   ## Minimal reproduction of the problem with instructions:
   Run the script

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [trafficcontrol] rawlinp closed issue #4285: Kickstart script broken

Posted by GitBox <gi...@apache.org>.
rawlinp closed issue #4285: Kickstart script broken
URL: https://github.com/apache/trafficcontrol/issues/4285
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [trafficcontrol] ocket8888 commented on issue #4285: Kickstart script broken

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #4285: Kickstart script broken
URL: https://github.com/apache/trafficcontrol/issues/4285#issuecomment-573209322
 
 
   Also one thing that's not Python3-friendly:
   ```python traceback
   Traceback (most recent call last):
     File "./kickstart_create_network_line.py", line 232, in <module>
       bondable_iface, iface_problems = useable_interfaces(net_devs, nc, iface_speed)
     File "./kickstart_create_network_line.py", line 174, in useable_interfaces
       speeds.sort(reverse=True)
   AttributeError: 'dict_keys' object has no attribute 'sort'
   ```
   Works fine in Python2 - though of course we're not supposed to support that anymore.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services