Skip to content

Commit

Permalink
Expose scale version in app config (#15266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubad786 authored Dec 24, 2024
1 parent 33831a9 commit 64b9d82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/middlewared/middlewared/plugins/apps/ix_apps/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import yaml

from middlewared.service_exception import CallError
from middlewared.utils import sw_version
from middlewared.utils.io import write_if_changed

from .path import (
Expand Down Expand Up @@ -98,6 +99,7 @@ def add_context_to_values(
'operation': operation,
'app_metadata': app_metadata,
f'is_{operation.lower()}': True,
'scale_version': sw_version(),
**({'upgrade_metadata': upgrade_metadata} if operation == 'UPGRADE' else {})
})

Expand Down

0 comments on commit 64b9d82

Please sign in to comment.