Reputation
Badges 1
533 × Eureka!Another Q on that - does pyhocon
allows me to edit the file while keeping the comments in place?
SuccessfulKoala55 this actually doesn't work
` apiserver_conf = ConfigFactory.parse_file(API_SERVER_CONF_PATH)
POINT 1
conf_content = HOCONConverter.to_hocon(config=ConfigFactory.from_dict(apiserver_conf.as_plain_ordered_dict()),
compact=False,
level=0, indent=2)
apiserver_conf['auth']['fixed_users']['users'].append(
ConfigFactory.from_dict({'username': username, 'password': password, 'name': name}))
##...
Well this will have to wait a bit... my clearml-server is causing problems
The only way to change it is to convert apiserver_conf
to a dictionary object ( as_plain_ordered_dict()
) and edit it
it seems apiserver_conf
doesn't even change
its like ps
+ grep
together 😄
you can use pgrep -af "trains-agent"
let me repay you with a nice trick
Thanks Alon
Even assuming it suspects me, why doesn't the captcha prove my innocence? Isn't it what it is for O_O
but using that code - how would I edit fileds?
it will return a Config
object right?
Confirmed working 😄
What about permissions to the machines that are being spun up? For exampel if I want the instances to have specific permissions to read/write to S3 for example, how do I mange those?
I don't fully get it - it says it has to be enqueued
AgitatedDove14 worked like a charm, thanks a lot!