Skip to content

Commit df7f7b2

Browse files
committed
improved log message when uuid cant be extracted
1 parent e2a7d19 commit df7f7b2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tools/audit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,14 @@ def clean_sliver_inconsistencies(self):
308308
# Extract UUID if found
309309
if match:
310310
sliver_id = match.group(1)
311-
print("Sliver Id:", sliver_id)
312311
if sliver_id not in cf_active_sliver_ids:
313312
result_2 = self.execute_ansible(inventory_path=inventory_location,
314313
playbook_path=vm_playbook_path,
315314
extra_vars={"operation": "delete", "vmname": vm_name},
316315
ansible_python_interpreter=ansible_python_interpreter)
317316
self.logger.info(f"Deleted instance: {vm_name}; result: {result_2.get_json_result_ok()}")
318317
else:
319-
print("Sliver Id not found in the input string.")
318+
self.logger.error(f"Sliver Id not found in the input string: {vm_name}")
320319
except Exception as e:
321320
self.logger.error(f"Failed to cleanup CF and openstack inconsistencies instance: {instance} vm: {vm_name}: {e}")
322321
self.logger.error(traceback.format_exc())

0 commit comments

Comments
 (0)