Skip to content

Commit

Permalink
Merge pull request #91 from yjinjo/master
Browse files Browse the repository at this point in the history
Check agent's option using any, not all
  • Loading branch information
yjinjo authored Apr 16, 2024
2 parents 901068b + 08dfc60 commit 55aa056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloudforet/console_api_v2/service/agent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _validate_and_update_options(agent_info: dict) -> dict:
cluster_name = options.get("cluster_name")
kube_state_metrics = options.get("kube_state_metrics")
prometheus_node_exporter = options.get("prometheus_node_exporter")
if not all([cluster_name, kube_state_metrics, prometheus_node_exporter]):
if not any([cluster_name, kube_state_metrics, prometheus_node_exporter]):
missing_fields = []
if "cluster_name" not in options:
missing_fields.append("cluster_name")
Expand Down

0 comments on commit 55aa056

Please sign in to comment.