Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Fixed wrong import order and Py3-incompatibility#4286

Merged
rawlinp merged 1 commit into
apache:masterfrom
ocket8888:kickstart-script-fix
Jan 10, 2020
Merged

Fixed wrong import order and Py3-incompatibility#4286
rawlinp merged 1 commit into
apache:masterfrom
ocket8888:kickstart-script-fix

Conversation

@ocket8888

Copy link
Copy Markdown
Contributor

What does this PR (Pull Request) do?

Changes the import order to be correct (__future__ first) and fixes an incompatibility with Python 3 (tested CPython versions 3.8.1 and 2.7.17).

Which Traffic Control components are affected by this PR?

  • Tools (kickstart_create_network_line.py)
    No documentation because this tool is undocumented - and should (hopefully) be on its way out.

What is the best way to verify this PR?

Try to run the script with a valid network.cfg file - if you don't have one it'll crash. If you don't have one that sets BOND_DEVICE and BOND_OPTIONS it'll crash. Probably others.

If this is a bug fix, what versions of Traffic Control are affected?

  • master
  • 4.0.0 (RC1)

The following criteria are ALL met by this PR

  • Tests are unnecessary
  • I have explained why documentation is unnecessary
  • An update to CHANGELOG.md is not necessary
  • This PR includes any and all required license headers
  • This PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

@ocket8888 ocket8888 added bug something isn't working as intended regression bug a bug in existing functionality introduced by a new version tools related to tools outside of main components, e.g. 'compare' labels Jan 10, 2020
Comment thread misc/kickstart_create_network_line.py
@rawlinp
rawlinp merged commit 133ee47 into apache:master Jan 10, 2020
@ocket8888
ocket8888 deleted the kickstart-script-fix branch January 10, 2020 22:55
@mitchell852 mitchell852 removed the bug something isn't working as intended label Aug 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

regression bug a bug in existing functionality introduced by a new version tools related to tools outside of main components, e.g. 'compare'

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kickstart script broken

3 participants