diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-02-29 19:38:39 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-03-02 23:52:49 +0000 |
| commit | e878da0412993330d54e91c56739b6386f367eef (patch) | |
| tree | 9fb2d53957204a87b1cd007b6867626cde978dc5 /docker/base | |
| parent | 2e7b6eeac034f74b822d6e1d7fd34cc51c38ebfc (diff) | |
| download | kolla-e878da0412993330d54e91c56739b6386f367eef.tar.gz kolla-e878da0412993330d54e91c56739b6386f367eef.zip | |
Reconfigure cinder service
Change-Id: I8d207d1782acfebf5c07de39df3257fd9bdbbada
Partially-implements: bp kolla-reconfig
Diffstat (limited to 'docker/base')
| -rw-r--r-- | docker/base/set_configs.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docker/base/set_configs.py b/docker/base/set_configs.py index 16e3c35eb..83b635c30 100644 --- a/docker/base/set_configs.py +++ b/docker/base/set_configs.py @@ -282,9 +282,15 @@ def execute_config_check(): dest = config_file.get('dest') perm = config_file.get('perm') owner = config_file.get('owner') + optional = config_file.get('optional', False) if not os.path.exists(dest): - LOG.error('Dest file not exist: %s', dest) - sys.exit(1) + if optional: + LOG.info('Dest file does not exist, but is optional: %s', + dest) + return + else: + LOG.error('Dest file does not exist and is: %s', dest) + sys.exit(1) # check content with open(source) as fp1, open(dest) as fp2: if fp1.read() != fp2.read(): |
