We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5e2f09 commit a8ba578Copy full SHA for a8ba578
src/mcp_server_uyuni/server.py
@@ -31,9 +31,7 @@ class ActivationKeySchema(BaseModel):
31
activation_key: str
32
33
REQUIRED_VARS = [
34
- "UYUNI_SERVER",
35
- "UYUNI_USER",
36
- "UYUNI_PASS",
+ "UYUNI_SERVER"
37
]
38
39
missing_vars = [key for key in REQUIRED_VARS if key not in os.environ]
@@ -136,8 +134,8 @@ async def _call_uyuni_api(
136
134
if perform_login:
137
135
try:
138
if token:
139
- login_response = await client.post(
140
- UYUNI_SERVER + '/rhn/manager/api/oidcLogin',
+ login_response = await client.get(
+ UYUNI_SERVER + '/rhn/manager/api/auth/oidcLogin',
141
headers={"Authorization": f"Bearer {token}"})
142
elif UYUNI_USER and UYUNI_PASS:
143
login_response = await client.post(
0 commit comments