Skip to content

Commit

Permalink
PR to make ANSIBLE_AI_ENABLE_PLAYBOOK_ENDPOINT default to True (#1429)
Browse files Browse the repository at this point in the history
* make ANSIBLE_AI_ENABLE_PLAYBOOK_ENDPOINT default to True

* fix

* fix review comment

* fix black
  • Loading branch information
justjais authored Nov 26, 2024
1 parent 2da3532 commit 7de850b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ansible_ai_connect/main/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,7 @@ def is_ssl_enabled(value: str) -> bool:
# Playbook Generation/Explanation endpoints
# ------------------------------------------
ANSIBLE_AI_ENABLE_PLAYBOOK_ENDPOINT = (
os.getenv(
"ANSIBLE_AI_ENABLE_PLAYBOOK_ENDPOINT", "False" if DEPLOYMENT_MODE == "on-prem" else "True"
).lower()
== "true"
os.getenv("ANSIBLE_AI_ENABLE_PLAYBOOK_ENDPOINT", "True").lower() == "true"
)
# ==========================================

Expand Down

0 comments on commit 7de850b

Please sign in to comment.