[pve-devel] [PATCH v1 pve-esxi-import-tools 1/5] listvms: remove unused import and variable

Max Carrara m.carrara at proxmox.com
Tue Mar 19 16:32:46 CET 2024


Signed-off-by: Max Carrara <m.carrara at proxmox.com>
---
 listvms.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/listvms.py b/listvms.py
index 97bb368..8666742 100755
--- a/listvms.py
+++ b/listvms.py
@@ -2,7 +2,6 @@
 
 from typing import List, Dict, Optional
 import json
-import os
 import ssl
 import sys
 from pyVim.connect import SmartConnect, Disconnect
@@ -100,7 +99,6 @@ def main():
         sys.exit(1)
 
     try:
-        datacenters = get_all_datacenters(si)
         vms = list_vms(si)
         data = {}
         for vm in vms:
-- 
2.39.2





More information about the pve-devel mailing list