Skip to content

Commit

Permalink
Update tasks/files/snapshot.py
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Megginson <[email protected]>
  • Loading branch information
trgill and richm authored Apr 5, 2024
1 parent 0f3582f commit b201eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/files/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def umount_snapshot_set(snapset_json, verify_only, check_mode):
else:
vg_name = None

if "lv" in list_item:
lv_name = list_item.get("lv")

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'lv_name' is unnecessary as it is
redefined
before this value is used.
lv_name = list_item["lv"]
else:
lv_name = None
Expand Down

0 comments on commit b201eba

Please sign in to comment.