Skip to content

Commit

Permalink
Fix/SK-1323 | fixed default host in shared.py (#789)
Browse files Browse the repository at this point in the history
* fixed default host in shared.py

* fixed username and password query in login_cmd.py
  • Loading branch information
KatHellg authored Jan 23, 2025
1 parent 5a3a404 commit ba1a6f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions fedn/cli/login_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@ def login_cmd(ctx, protocol: str, host: str, username: str, password: str):
url = f"{protocol}://{host}/api/token/"

# Step 3: Prompt for username and password
if username is None and password is None:
if username is None:
username = input("Please enter your username: ")
if password is None:
password = getpass("Please enter your password: ")
elif password is None:
password = getpass("Please enter your password: ")
else:
username = input("Please enter your username: ")

# Call the authentication API
try:
Expand Down
2 changes: 1 addition & 1 deletion fedn/cli/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

CONTROLLER_DEFAULTS = {"protocol": "http", "host": "localhost", "port": 8092, "debug": False}

STUDIO_DEFAULTS = {"protocol": "https", "host": "fedn.scaleoutstudio.com"}
STUDIO_DEFAULTS = {"protocol": "https", "host": "fedn.scaleoutsystems.com"}

COMBINER_DEFAULTS = {"discover_host": "localhost", "discover_port": 8092, "host": "localhost", "port": 12080, "name": "combiner", "max_clients": 30}

Expand Down

0 comments on commit ba1a6f7

Please sign in to comment.