File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ def init(self):
30
30
os .environ ['MLOPS_SPOOLER_TYPE' ] = "FILESYSTEM"
31
31
os .environ ['MLOPS_FILESYSTEM_DIRECTORY' ] = self .spool_dir
32
32
33
- with open (total_dir_path + '/conf/mlops.agent.conf.yaml' ) as f :
33
+ with open (self . total_dir_path + '/conf/mlops.agent.conf.yaml' ) as f :
34
34
documents = yaml .load (f , Loader = yaml .FullLoader )
35
35
documents ['mlopsUrl' ] = self .endpoint
36
36
documents ['apiToken' ] = self .token
37
- with open (total_dir_path + '/conf/mlops.agent.conf.yaml' , 'w' ) as f :
37
+ with open (self . total_dir_path + '/conf/mlops.agent.conf.yaml' , 'w' ) as f :
38
38
yaml .dump (documents , f )
39
39
40
- subprocess .call (total_dir_path + '/bin/start-agent.sh' )
41
- check = subprocess .Popen ([total_dir_path + '/bin/status-agent.sh' ], stdout = subprocess .PIPE )
40
+ subprocess .call (self . total_dir_path + '/bin/start-agent.sh' )
41
+ check = subprocess .Popen ([self . total_dir_path + '/bin/status-agent.sh' ], stdout = subprocess .PIPE )
42
42
output = check .stdout .readlines ()[0 ]
43
43
check .terminate ()
44
44
if b"DataRobot MLOps-Agent is running as a service." in output :
You can’t perform that action at this time.
0 commit comments