File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ connection.restart_app("app_name")
8181# update app
8282connection.update_app(" app_name" , app_conf)
8383
84+ # update app force all params - will reset all params to default values if not declared and raise an error for params
85+ # that are required but not given, similar to the POST update of the API
86+ connection.update_app(" app_name" , app_conf, force_all = True )
87+
8488# prune images on all device groups
8589connection.prune_images()
8690
@@ -171,6 +175,14 @@ connection.create_cron_job("cron_job_name", cron_job_config)
171175cron_job_config = {
172176 " schedule" : " 5 * * * *"
173177}
174- connection.create_cron_job(" cron_job_name" , cron_job_config)
178+ connection.update_cron_job(" cron_job_name" , cron_job_config)
179+
180+ # update a cron job force all params - will reset all params to default values if not declared and raise an error for
181+ # params that are required but not given, similar to the POST update of the API
182+ cron_job_config = {
183+ " schedule" : " 5 * * * *" ,
184+ " docker_image" : " nginx"
185+ }
186+ connection.update_cron_job(" cron_job_name" , cron_job_config, force_all = True )
175187
176188```
You can’t perform that action at this time.
0 commit comments