Handle empty case.
This commit is contained in:
parent
f852afd166
commit
f9a0b4d390
|
@ -52,8 +52,8 @@ def controller_api_joined(r_id=None):
|
|||
|
||||
@hooks.hook()
|
||||
def install():
|
||||
if config["install-sources"]:
|
||||
configure_sources(update=True, sources_var="install_sources")
|
||||
if config.get("install-sources"):
|
||||
configure_sources(update=True, sources_var="install-sources")
|
||||
|
||||
# install packages
|
||||
apt_install(PACKAGES, fatal=True)
|
||||
|
|
Loading…
Reference in New Issue