Skip to content

Commit

Permalink
[fix] Fixed create_default_topology condition check #421
Browse files Browse the repository at this point in the history
Fixes #421

---------

Co-authored-by: Gagan Deep <[email protected]>
  • Loading branch information
keviiin38 and pandafy authored Jan 8, 2025
1 parent f8156d6 commit b0bcaed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion images/openwisp_dashboard/load_init_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import django
import redis
from openwisp.utils import env_bool

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'openwisp.settings')
django.setup()
Expand Down Expand Up @@ -254,6 +255,6 @@ def create_default_topology(vpn):
create_default_credentials()
create_ssh_key_template()

if os.environ.get('USE_OPENWISP_TOPOLOGY', False):
if env_bool(os.environ.get('USE_OPENWISP_TOPOLOGY')):
Topology = load_model('topology', 'Topology')
create_default_topology(default_vpn)

0 comments on commit b0bcaed

Please sign in to comment.