Skip to content

Commit

Permalink
refactor: fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Feb 2, 2024
1 parent 8ce8475 commit 9e34467
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/files/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ def remove_snapshot_set(snapset_json):

rc, vg_exists, lv_exists = lvm_lv_exists(vg, snapshot_name)
if rc != SnapshotStatus.SNAPSHOT_OK:
return rc, message
return rc, "failed to get LV status"

# if there is no snapshot, continue (idempotent)
if not vg_exists or not lv_exists:
Expand Down Expand Up @@ -1328,7 +1328,6 @@ def snapshot_precheck_lv_set_space(snapset_json):
# precheck the set to make sure it will work and create snapshots for
# the source LVs in the set
def snapshot_precheck_lv_set(snapset_json):

rc, message = verify_snapset_source_lvs_exist(snapset_json)
if rc != SnapshotStatus.SNAPSHOT_OK:
return rc, message, None
Expand Down

0 comments on commit 9e34467

Please sign in to comment.