Skip to content
Snippets Groups Projects
Commit d4ee0ba5 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3087941 by Xiaohua Guan, yas: Fix "Warning: Invalid argument supplied...

Issue #3087941 by Xiaohua Guan, yas: Fix "Warning: Invalid argument supplied for foreach() in s3_to_k8s_import_entities()"
parent 8091305c
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,10 @@ function s3_to_k8s_cron() { ...@@ -53,6 +53,10 @@ function s3_to_k8s_cron() {
'Prefix' => $s3_path, 'Prefix' => $s3_path,
]); ]);
if (empty($result['Contents'])) {
return;
}
// Update resources. // Update resources.
k8s_update_resources($k8s_cloud_context); k8s_update_resources($k8s_cloud_context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment