Skip to content

Commit

Permalink
[freeradius] Order of import problem fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
atb00ker committed Apr 28, 2021
1 parent ef14796 commit 77a25a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set default python version
run: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
run: update-alternatives --install /usr/bin/python python ${pythonLocation}/bin/python3.8 2


- name: Install python dependencies
run: |
sudo python3 -m pip install molecule[docker] yamllint ansible ansible-lint docker openwisp-utils[qa]
python -m pip install molecule[docker] yamllint ansible ansible-lint docker openwisp-utils[qa]
- name: QA checks
run: |
Expand Down
11 changes: 5 additions & 6 deletions templates/freeradius/sql_counter.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

sqlcounter dailycounter {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Daily-Session-Time
check_name = Max-Daily-Session
Expand All @@ -13,11 +13,10 @@ sqlcounter dailycounter {

$INCLUDE ${modconfdir}/sql/counter/${dialect}/${.:instance}.conf
}

# The dailybandwidthcounter is added by OpenWISP
sqlcounter dailybandwidthcounter {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Max-Daily-Session-Traffic
check_name = Max-Daily-Session-Traffic
Expand All @@ -29,7 +28,7 @@ sqlcounter dailybandwidthcounter {

sqlcounter noresetcounter {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Max-All-Session-Time
check_name = Max-All-Session
Expand All @@ -41,7 +40,7 @@ sqlcounter noresetcounter {

sqlcounter monthlycounter {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Monthly-Session-Time
check_name = Max-Monthly-Session
Expand All @@ -54,7 +53,7 @@ sqlcounter monthlycounter {

sqlcounter expire_on_login {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Expire-After-Initial-Login
check_name = Expire-After
Expand Down

0 comments on commit 77a25a9

Please sign in to comment.