Skip to content

Commit

Permalink
Merge pull request #25 from almenscorner/dev
Browse files Browse the repository at this point in the history
Bug fix: run_intunecd_update() takes 1 positional argument
  • Loading branch information
almenscorner authored Sep 26, 2023
2 parents c06b5e3 + e2a8ffa commit 3feff32
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
task_track_started=True,
),
)
app.config["APP_VERSION"] = "2.0.0"
app.config["APP_VERSION"] = "2.0.1"
app.config["APISPEC_SWAGGER_UI_URL"] = "/apidocs"
app.config["APISPEC_TITLE"] = "IntuneCD Monitor API Docs"

Expand Down
5 changes: 4 additions & 1 deletion app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,10 @@ def add_schedule():
if tenant.new_branch == "true":
schedule_tenant_args = [schedule_tenant, tenant.new_branch]
else:
schedule_tenant_args = [schedule_tenant, ""]
if schedule_type == "update":
schedule_tenant_args = [schedule_tenant]
else:
schedule_tenant_args = [schedule_tenant, ""]

add_scheduled_task(
schedule_cron, schedule_name, schedule_task, schedule_tenant_args
Expand Down
6 changes: 6 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ services:
- 8080
environment:
- TZ=Europe/Stockholm
volumes:
- ./db:/intunecd/db

redis:
image: "redis:6.0.5-buster"
Expand All @@ -27,6 +29,8 @@ services:
- .env
environment:
- TZ=Europe/Stockholm
volumes:
- ./db:/intunecd/db

beat:
build: ./
Expand All @@ -38,6 +42,8 @@ services:
- .env
environment:
- TZ=Europe/Stockholm
volumes:
- ./db:/intunecd/db

nginx:
build: ./nginx-dev
Expand Down

0 comments on commit 3feff32

Please sign in to comment.