blob: f92c7c9eea3bb982a8d90c19b7ea1cd4cfa54822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import yaml
def write_default_config(disk, global_params):
default_params = dict()
for k in [
'task_name',
'username',
'task_url']:
if k in global_params:
default_params[k] = global_params[k]
disk.write('/home/tester/.kpov_params.yaml', yaml.dump(default_params))
disk.chown(1001, 1001, "/home/tester/.kpov_params.yaml")
|