Skip to content

Commit c66741d

Browse files
committed
Update result message from warning to print
1 parent 1a52982 commit c66741d

4 files changed

Lines changed: 4 additions & 19 deletions

File tree

src/k8s-extension/azext_k8s_extension/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from knack.commands import CLICommand
1313

14-
1514
class K8sExtensionCommandsLoader(AzCommandsLoader):
1615

1716
def __init__(self, cli_ctx=None):

src/k8s-extension/azext_k8s_extension/_params.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
from knack.commands import CLICommand
1919

20-
2120
def load_arguments(self, _: CLICommand) -> None:
2221
with self.argument_context(consts.EXTENSION_NAME) as c:
2322
c.argument('location',

src/k8s-extension/azext_k8s_extension/consts.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@
2727

2828
EXTENSION_TYPE_API_VERSION = "2023-05-01-preview"
2929

30-
# Diagnostic check result constants.
31-
# Used to indicate the outcome of a diagnostic check performed on the cluster or extension.
32-
DIAGNOSTIC_CHECK_PASSED = "Passed" # The diagnostic check completed successfully.
33-
DIAGNOSTIC_CHECK_FAILED = "Failed" # The diagnostic check failed.
34-
DIAGNOSTIC_CHECK_INCOMPLETE = "Incomplete" # The diagnostic check did not complete.
35-
36-
# Diagnostic check name constants.
37-
# Used to identify specific diagnostic checks performed during troubleshooting.
38-
RETRIEVE_NAMESPACE_LOGS = "retrieved_namespace_logs" # Check for retrieving logs from a namespace.
39-
RETRIEVE_POD_STATUS = "retrieved_pod_status" # Check for retrieving pod status information.
40-
RETRIEVE_CONFIGMAP = "retrieved_config_map" # Check for retrieving ConfigMap data.
41-
4230
# Fault type constants for error categorization.
4331
# Used to classify different types of faults encountered during diagnostics.
4432
LOAD_KUBECONFIG_FAULT_TYPE = "kubeconfig-load-error" # Error loading kubeconfig file.

src/k8s-extension/azext_k8s_extension/custom.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
from kubernetes.client.rest import ApiException
6060
from kubernetes.client import CoreV1Api, V1NodeList
6161

62-
6362
from typing import Optional, Union
6463

6564
import oras.client
@@ -618,10 +617,10 @@ def troubleshoot_extension(
618617
storage_space_available = False
619618

620619
if storage_space_available:
621-
logger.warning(
622-
"The diagnoser logs have been saved at this path: %s.\nThese logs can be attached while filing a "
623-
"support ticket for further assistance.\n",
624-
filepath_with_timestamp,
620+
print(
621+
f"The diagnoser logs have been saved at this path: '{filepath_with_timestamp}'.\n"
622+
"These logs can be attached while filing a "
623+
"support ticket for further assistance.\n"
625624
)
626625
else:
627626
logger.warning(

0 commit comments

Comments
 (0)