@@ -25,7 +25,7 @@ def print_server_config(server_config: ServerConfig, is_stashed=False):
2525 else :
2626 console .print (f"[bold cyan]{ server_config .name } [/]" )
2727
28- if isinstance (server_config , ( RemoteServerConfig , RemoteServerConfig ) ):
28+ if isinstance (server_config , RemoteServerConfig ):
2929 console .print (f" Url: [green]{ server_config .url } [/]" )
3030 headers = getattr (server_config , "headers" , None )
3131 if headers :
@@ -34,7 +34,7 @@ def print_server_config(server_config: ServerConfig, is_stashed=False):
3434 console .print (f' [bold blue]{ key } [/] = [green]"{ value } "[/]' )
3535 console .print (" " + "-" * 50 )
3636 return
37- elif hasattr ( server_config , "command" ) and hasattr ( server_config , "args" ) and hasattr ( server_config , "env" ) :
37+ else :
3838 command = server_config .command
3939 console .print (f" Command: [green]{ command } [/]" )
4040
@@ -55,10 +55,6 @@ def print_server_config(server_config: ServerConfig, is_stashed=False):
5555 console .print (" Environment Variables: [italic]None[/]" )
5656 console .print (" " + "-" * 50 )
5757 return
58- else :
59- console .print ("[red]Unknown server config type![/]" )
60- console .print (" " + "-" * 50 )
61- return
6258
6359
6460def print_servers_table (servers ):
0 commit comments