Browse Source

Merge "fix: Correct .data path layering edge case"

changes/22/610722/3
Zuul 8 months ago
parent
commit
475655ac5a
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      deckhand/engine/layering.py

+ 5
- 0
deckhand/engine/layering.py View File

@@ -547,8 +547,13 @@ class DocumentLayering(object):
547 547
             child_data = {}
548 548
 
549 549
         action_path = action['path']
550
+
550 551
         if action_path.startswith('.data'):
551 552
             action_path = action_path[5:]
553
+        elif action_path.startswith('$.data'):
554
+            action_path = action_path[6:]
555
+        if not (action_path.startswith('.') or action_path.startswith('$.')):
556
+            action_path = '.' + action_path
552 557
 
553 558
         if method == self._DELETE_ACTION:
554 559
             if action_path == '.':

Loading…
Cancel
Save