autoconf - fix overwrite configs file when using Docker autoconf
This commit is contained in:
parent
3c417d2ff0
commit
c563731e86
@ -131,10 +131,11 @@ class Config(ApiCaller, ConfigCaller) :
|
|||||||
self._set_apis(self.__get_apis())
|
self._set_apis(self.__get_apis())
|
||||||
|
|
||||||
# write configs
|
# write configs
|
||||||
ret = self.__write_configs()
|
if configs != None :
|
||||||
if not ret :
|
ret = self.__write_configs()
|
||||||
success = False
|
if not ret :
|
||||||
log("CONFIG", "❌", "saving custom configs failed, configuration will not work as expected...")
|
success = False
|
||||||
|
log("CONFIG", "❌", "saving custom configs failed, configuration will not work as expected...")
|
||||||
|
|
||||||
# get env
|
# get env
|
||||||
env = self.__get_full_env()
|
env = self.__get_full_env()
|
||||||
|
|||||||
@ -43,7 +43,7 @@ class DockerController(Controller) :
|
|||||||
raise("get_configs is not supported with DockerController")
|
raise("get_configs is not supported with DockerController")
|
||||||
|
|
||||||
def apply_config(self) :
|
def apply_config(self) :
|
||||||
return self._config.apply(self._instances, self._services, configs=self._configs)
|
return self._config.apply(self._instances, self._services)
|
||||||
|
|
||||||
def process_events(self) :
|
def process_events(self) :
|
||||||
for event in self.__client.events(decode=True, filters={"type": "container"}) :
|
for event in self.__client.events(decode=True, filters={"type": "container"}) :
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user