From 63357728eaea463031d86cc10157eb200b21a897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20P?= Date: Tue, 31 Jan 2023 11:01:00 +0100 Subject: [PATCH] logging bug fixes --- defender-for-vm-analyzer/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defender-for-vm-analyzer/__init__.py b/defender-for-vm-analyzer/__init__.py index 844eff0..f35255c 100644 --- a/defender-for-vm-analyzer/__init__.py +++ b/defender-for-vm-analyzer/__init__.py @@ -72,8 +72,8 @@ def get_databricks_billable_vms(subscription_id): if is_databricks_vm and DEBUG: logger.info("The VM {} is a Databricks VM".format(vm.name)) - else: - logger.info("The VM {} is not a Databricks worker since the VM plan is {}".format(vm.name, vm.plan)) + elif DEBUG: + logger.info("The VM {} is not a Databricks worker") # Skip this VM since it is not a Databricks worker continue