Skip to content

Commit

Permalink
[patch] Fix NFS idempotency checks (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
durera authored Sep 12, 2024
1 parent d676162 commit 8f367c3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
include_tasks: tasks/providers/fyre/nfs/get_private_ip.yml
when:
- nfs_storage_class_lookup.resources is defined
- nfs_storage_class_lookup.resources | length > 0
- nfs_storage_class_lookup.resources | length == 0


# 3. Delete Image Registry
Expand All @@ -28,7 +28,7 @@
include_tasks: tasks/providers/fyre/nfs/delete_image_registry.yml
when:
- nfs_storage_class_lookup.resources is defined
- nfs_storage_class_lookup.resources | length > 0
- nfs_storage_class_lookup.resources | length == 0


# 4. Configure NFS
Expand All @@ -37,7 +37,7 @@
include_tasks: tasks/providers/fyre/nfs/configure_nfs.yml
when:
- nfs_storage_class_lookup.resources is defined
- nfs_storage_class_lookup.resources | length > 0
- nfs_storage_class_lookup.resources | length == 0


# 5. Recreate Image Registry using NFS
Expand All @@ -46,4 +46,4 @@
include_tasks: tasks/providers/fyre/nfs/create_image_registry.yml
when:
- nfs_storage_class_lookup.resources is defined
- nfs_storage_class_lookup.resources | length > 0
- nfs_storage_class_lookup.resources | length == 0

0 comments on commit 8f367c3

Please sign in to comment.