Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65a0ffc

Browse files
committed
Fix empty yaml document error
1 parent 0543412 commit 65a0ffc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kubernetes/utils/create_from_yaml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def create_from_yaml(
6868
failures = []
6969
k8s_objects = []
7070
for yml_document in yml_document_all:
71+
if yml_document is None:
72+
continue
7173
try:
7274
created = create_from_dict(k8s_client, yml_document, verbose,
7375
namespace=namespace,

0 commit comments

Comments
 (0)