Skip to content

Commit 7072080

Browse files
authored
chore(service): return cli version in core svc (#3655)
1 parent 2502aaf commit 7072080

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

renku/ui/service/controllers/version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
"""Renku service version controller."""
17+
import os
18+
1719
from renku import __version__
1820
from renku.core.migration.migrate import SUPPORTED_PROJECT_VERSION
1921
from renku.ui.service.controllers.api.abstract import ServiceCtrl
@@ -33,6 +35,7 @@ def to_response(self, minimum_version, maximum_version):
3335
{
3436
"latest_version": __version__,
3537
"supported_project_version": SUPPORTED_PROJECT_VERSION,
38+
"cli_version": os.environ.get("RENKU_PROJECT_DEFAULT_CLI_VERSION") or __version__,
3639
"minimum_api_version": minimum_version.name,
3740
"maximum_api_version": maximum_version.name,
3841
},

0 commit comments

Comments
 (0)