Skip to content

Commit b0ca2f5

Browse files
committed
Altered config_check() function
1 parent 31485f4 commit b0ca2f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/codeflare_sdk/cluster/auth.py

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
global path_set
2727
path_set = False
28+
global api_client
29+
api_client = None
2830

2931

3032
class Authentication(metaclass=abc.ABCMeta):
@@ -165,5 +167,7 @@ def config_check():
165167
Function for loading the config file at the default config location ~/.kube/config if the user has not
166168
specified their own config file or has logged in with their token and server.
167169
"""
170+
global path_set
171+
global api_client
168172
if path_set == False and api_client == None:
169173
config.load_kube_config()

0 commit comments

Comments
 (0)