diff options
| author | Zuul <zuul@review.opendev.org> | 2023-08-29 16:12:56 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2023-08-29 16:12:56 +0000 |
| commit | 9a97600b0c37bbeb0f5fe4850e11d91f098f18bd (patch) | |
| tree | 4931ad2eb8d57e5e42fe66a5a30a24ab6a71ea0b /docker | |
| parent | 13573914881be47873175e8c513758afa741d465 (diff) | |
| parent | d9a6c5f3901e078a30d341397ac57d867d8191cc (diff) | |
| download | kolla-9a97600b0c37bbeb0f5fe4850e11d91f098f18bd.tar.gz kolla-9a97600b0c37bbeb0f5fe4850e11d91f098f18bd.zip | |
Merge "Add comprehensive checks for container restarts"
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/base/set_configs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/base/set_configs.py b/docker/base/set_configs.py index b03bea7c5..4c5078cc4 100644 --- a/docker/base/set_configs.py +++ b/docker/base/set_configs.py @@ -162,9 +162,11 @@ class ConfigFile(object): def _cmp_file(self, source, dest): # check exist if (os.path.exists(source) and - not self.optional and not os.path.exists(dest)): return False + if (os.path.exists(dest) and + not os.path.exists(source)): + return False # check content with open(source, 'rb') as f1, open(dest, 'rb') as f2: if f1.read() != f2.read(): |
