We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a15bda2 commit 0b27e2eCopy full SHA for 0b27e2e
1 file changed
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