Skip to content

Commit 4d21479

Browse files
committed
negate the negation
1 parent b02dce7 commit 4d21479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netfoundry/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def patch_resource(self, patch: dict, type: str = None, id: str = None, wait: in
466466
# compare the patch to the discovered, current state, adding new or updated keys to pruned_patch
467467
pruned_patch = dict()
468468
for k in patch.keys():
469-
if k not in RESOURCES[plural(type)].no_update_props and k not in before_resource.keys():
469+
if k not in RESOURCES[plural(type)].no_update_props and k in before_resource.keys():
470470
if isinstance(patch[k], list):
471471
if not set(before_resource[k]) == set(patch[k]):
472472
pruned_patch[k] = list(set(patch[k]))

0 commit comments

Comments
 (0)