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.
2 parents ba71e2e + 0b27e2e commit 9e27fc2Copy full SHA for 9e27fc2
staff/sys/ocf-kubernetes-deploy
@@ -85,8 +85,11 @@ def main():
85
else:
86
filename = os.path.join(args.secrets, args.appname + '.yaml')
87
88
- with open(filename, 'r') as stream:
89
- bindings.update(yaml.safe_load(stream))
+ try:
+ with open(filename, 'r') as stream:
90
+ bindings.update(yaml.safe_load(stream))
91
+ except FileNotFoundError:
92
+ print('Secrets file not found')
93
94
# Created with 600 perms
95
with tempfile.NamedTemporaryFile(suffix='.json') as bindings_file:
0 commit comments