From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 777F81FF17A for ; Fri, 18 Jul 2025 18:18:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id EE07D35019; Fri, 18 Jul 2025 18:19:14 +0200 (CEST) From: "Max R. Carrara" To: pve-devel@lists.proxmox.com Date: Fri, 18 Jul 2025 18:19:03 +0200 Message-Id: <20250718161905.461482-4-m.carrara@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250718161905.461482-1-m.carrara@proxmox.com> References: <20250718161905.461482-1-m.carrara@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1752855548105 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.084 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH v1 pve-esxi-import-tools 3/5] listvms: run formatter X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Like in 1563eddb, run `black -l 80` [0], even though we don't have an official style guide for Python. This is just to keep the code looking consistent. [0]: https://github.com/psf/black Signed-off-by: Max R. Carrara --- listvms.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/listvms.py b/listvms.py index 710ac5e..a718c41 100755 --- a/listvms.py +++ b/listvms.py @@ -31,9 +31,9 @@ def parse_args() -> argparse.Namespace: parser.add_argument( "--port", type=int, - metavar='PORT', + metavar="PORT", default=443, - help="Use a port other than 443." + help="Use a port other than 443.", ) parser.add_argument( @@ -320,9 +320,11 @@ def is_vcls_agent_vm(vm: vim.VirtualMachine) -> bool: if vm.config is None: return False - return any(cfg.key == "HDCS.agent" - and cfg.value.lower() == "true" - for cfg in vm.config.extraConfig) + return any( + cfg.key == "HDCS.agent" and cfg.value.lower() == "true" + for cfg in vm.config.extraConfig + ) + def is_diskless_vm(vm: vim.VirtualMachine) -> bool: if vm.config is None or vm.config.files is None: @@ -332,6 +334,7 @@ def is_diskless_vm(vm: vim.VirtualMachine) -> bool: return not datastore_name + def main(): args = parse_args() -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel