Merge pull request #269 from imjfckm/dont-fail-on-missing-config

Don't fail boot if opencas config is missing
This commit is contained in:
rafalste 2020-01-13 11:55:31 +01:00 committed by GitHub
commit 4acc7fb328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,8 @@ def settle(timeout, interval):
not_initialized = opencas.wait_for_startup(timeout, interval) not_initialized = opencas.wait_for_startup(timeout, interval)
except Exception as e: except Exception as e:
eprint(e) eprint(e)
exit(1) # Don't fail the boot if we're missing the config
exit(0)
if not_initialized: if not_initialized:
eprint("Open CAS initialization failed. Couldn't set up all required devices") eprint("Open CAS initialization failed. Couldn't set up all required devices")