From b50536566cb13d00a9f27666ced49ac3e1fc60ac Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Tue, 10 Dec 2024 16:55:59 +0100 Subject: [PATCH 1/2] Change server_status nas to update statusdb by default --- taca/server_status/cli.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/taca/server_status/cli.py b/taca/server_status/cli.py index 1833035f..59511010 100644 --- a/taca/server_status/cli.py +++ b/taca/server_status/cli.py @@ -1,3 +1,4 @@ +import json import logging import click @@ -16,14 +17,16 @@ def server_status(): # server status subcommands @server_status.command() -@click.option("--statusdb", is_flag=True, help="Update the statusdb") -def nases(statusdb): +@click.option("--no_update", is_flag=True, help="Do not update the statusdb") +def nases(no_update): """Checks the available space on all the nases""" if not CONFIG.get("server_status", ""): logging.warning("Configuration missing required entries: server_status") disk_space = status.get_nases_disk_space() - if statusdb: + if not no_update: status.update_status_db(disk_space, server_type="nas") + else: + print(json.dumps(disk_space, indent=4)) @server_status.command() From 0c776a152f45f9e7ad8eebeab743aea62b757e5c Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Tue, 10 Dec 2024 16:58:26 +0100 Subject: [PATCH 2/2] Update versionlog --- VERSIONLOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VERSIONLOG.md b/VERSIONLOG.md index f4b28911..c5c8a032 100644 --- a/VERSIONLOG.md +++ b/VERSIONLOG.md @@ -1,5 +1,9 @@ # TACA Version Log +## 20241210.4 + +Change server_status nas to update statusdb by default + ## 20241210.3 Add support for releasing DDS projects