Skip to content

Commit

Permalink
Patch assign snapshotpolicyID (#25789)
Browse files Browse the repository at this point in the history
  • Loading branch information
audunn authored Mar 16, 2023
1 parent c992d74 commit 7087304
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def patch_volume(instance, usage_threshold=None, service_level=None, tags=None,
backup_policy_id=backup_policy_id, policy_enforced=policy_enforced)
logger.debug("ANF Log: backup set")

if any(x is not None for x in [backup, snapshot]):
if snapshot_policy_id is not None:
snapshot = VolumeSnapshotProperties(snapshot_policy_id=snapshot_policy_id)
logger.debug("ANF Log: DataProtection props set")

Expand Down

0 comments on commit 7087304

Please sign in to comment.