Skip to content

Commit 09e1ed1

Browse files
committed
modify code as codereview
Signed-off-by: ZouYuhua <[email protected]>
1 parent 7f211b9 commit 09e1ed1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

linux/vtpm_cold_add_remove/vtpm_cold_add.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@
9696

9797
# The testing functionality is limited or incomplete when tpm2-tools version is older than 4.x, we will only perform a simple test.
9898
# Debian 10 has tpm2-tools version 3.1.3
99-
# proLinux 7.x and RHEL_7.x have tpm2-tools version 3.0.4
99+
# ProLinux 7.x and RHEL_7.x have tpm2-tools version 3.0.4
100100
- name: "Check vTPM for {{ guest_os_ansible_distribution }} {{ guest_os_ansible_distribution_ver }}"
101-
when: tpm2_major_version is defined and tpm2_major_version | int < 4
101+
when: tpm2_major_version | int < 4
102102
block:
103-
# vTPM.enable.tpm2_hash: Verify the validity of hash
104103
- name: "Verify the validity of hash"
105104
include_tasks: vtpm2_hash_test.yml
106105

linux/vtpm_cold_add_remove/vtpm_install_packages.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# Copyright 2026 VMware, Inc.
22
# SPDX-License-Identifier: BSD-2-Clause
33
---
4-
#
54
- name: "Install 'tpm2-tools' for {{ guest_os_ansible_distribution }}"
65
include_tasks: ../utils/install_uninstall_package.yml
76
vars:
87
package_list: ["tpm2-tools"]
98
package_state: "present"
109
when: guest_os_ansible_distribution not in ['SLES', 'SLED', 'openSUSE Leap']
1110

12-
# Configure local DVD repositories to install packages for openSUSE, SLES.
1311
- name: "Add ISO repo and install packages from ISO"
1412
when: guest_os_ansible_distribution in ['SLES', 'SLED', 'openSUSE Leap']
1513
block:

0 commit comments

Comments
 (0)