8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c912f9 commit ed67d89Copy full SHA for ed67d89
kubernetes/utils/create_from_yaml.py
@@ -66,13 +66,12 @@ def create_from_yaml(
66
processing of the request.
67
Valid values are: - All: all dry run stages will be processed
68
"""
69
- if path.exists(yaml_file):
70
- with open(path.abspath(yaml_file)) as f:
71
- content = f.read()
72
- try:
73
- yaml_file = StringIO(content)
74
- except TypeError:
75
- yaml_file = StringIO(content.decode('utf-8'))
+ with open(path.abspath(yaml_file)) as f:
+ content = f.read()
+ try:
+ yaml_file = StringIO(content)
+ except TypeError:
+ yaml_file = StringIO(content.decode('utf-8'))
76
77
yml_document_all = yaml.safe_load_all(yaml_file)
78
0 commit comments