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")
81
81
# update app
82
82
connection.update_app(" app_name" , app_conf)
83
83
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
+
84
88
# prune images on all device groups
85
89
connection.prune_images()
86
90
@@ -171,6 +175,14 @@ connection.create_cron_job("cron_job_name", cron_job_config)
171
175
cron_job_config = {
172
176
" schedule" : " 5 * * * *"
173
177
}
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 )
175
187
176
188
```
You can’t perform that action at this time.
0 commit comments