Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[images] Fix create_default_topology condition check #421 #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keviiin38
Copy link

Fix if condition checking if the default topology should be created.

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

Reference to Existing Issue

Closes #421

Description of Changes

Currently the if condition returns True even if the variable USE_OPENWISP_TOPOLOGY is set to False.
This is due to the fact that the value returned is "False", which evaluates to True in Python.

Screenshot

n/a

Fix if condition checking if the default topology should be created.

Fixes openwisp#421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] USE_OPENWISP_TOPOLOGY not taken into account in load_init_data script
1 participant