This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Commit 47e1e3a
committed
Check CNAB for action before call inspect
Checks the CNAB for the docker app inspect action before attempting to
call inspect. If the action is not defined then inspect the CNAB bundle
directly.
Refactors the `hasAction` func to just check for the key instead of
looping through the map.
Signed-off-by: Nick Adcock <nick.adcock@docker.com>1 parent 99c2957 commit 47e1e3a
2 files changed
+23
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 72 | | |
85 | 73 | | |
86 | 74 | | |
87 | 75 | | |
88 | 76 | | |
89 | 77 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
95 | 81 | | |
96 | 82 | | |
97 | | - | |
98 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 135 | + | |
| 136 | + | |
141 | 137 | | |
0 commit comments