Skip to content

Commit

Permalink
Fixed pylint issues
Browse files Browse the repository at this point in the history
Signed-off-by: schamola <[email protected]>
  • Loading branch information
schamola committed Nov 24, 2023
1 parent c64cad9 commit 5bb8a2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/alt_root_vg.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_pvs(module):

module.debug('List of PVs:')
for item in pvs.items():
module.debug(f' pvs[{item[0]}]: {pvs[item[0]]}')
module.debug(f' pvs[{item[0]}]: {item[1]}')

return pvs

Expand Down Expand Up @@ -160,7 +160,7 @@ def get_free_pvs(module):

module.debug('List of available PVs:')
for item in free_pvs.items():
module.debug(f' free_pvs[{item[0]}]: {free_pvs[item[0]]}')
module.debug(f' free_pvs[{item[0]}]: {item[1]}')

return free_pvs

Expand Down Expand Up @@ -432,7 +432,7 @@ def alt_disk_clean(module, hdisks):
# Retrieve the list of disks that belong to altinst_rootvg
hdisks = []
for pv in pvs.items():
if pvs[pv[0]]['vg'] == 'altinst_rootvg':
if pv[1]['vg'] == 'altinst_rootvg':
hdisks.append(pv[0])
if not hdisks:
# Do not fail if there is no altinst_rootvg to preserve idempotency
Expand Down

0 comments on commit 5bb8a2c

Please sign in to comment.