Skip to content

Commit

Permalink
Improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
pirp committed Jun 3, 2024
1 parent d2f597c commit f2eaf8d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@
(fn [{:keys [db]} [_ id]]
{:db (assoc db ::spec/deployment {:id id})
::cimi-api-fx/get [id #(let [{:keys [content subtype href]} (:module %)
kubernetes-or-helm-app? (or (= subtype "application_kubernetes")
(= subtype "application_helm"))
kubernetes-or-helm-app? (contains? #{"application_kubernetes" "application_helm"} subtype)
filter (if kubernetes-or-helm-app?
"subtype='kubernetes'"
"subtype='swarm'")]
Expand Down

0 comments on commit f2eaf8d

Please sign in to comment.