summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-04 05:37:33 +0100
committerGitHub <noreply@github.com>2023-03-04 05:37:33 +0100
commit493af3f3417cef5c9898f242a2b885e63e3bdeef (patch)
treeb9536a832d7693f2f35d90fc75b58ff57be4d640 /python
parente5eb4f332f03df51d64d51e7f38ee561f298188c (diff)
parent7ab3b9e021e7ce1c56b9f252a04400a37fd33e71 (diff)
downloadvyos-1x-493af3f3417cef5c9898f242a2b885e63e3bdeef.tar.gz
vyos-1x-493af3f3417cef5c9898f242a2b885e63e3bdeef.zip
Merge pull request #1862 from jestabro/schema-generate
graphql: T5040: generate schema on installation, rather than dynamically
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configquery.py2
-rw-r--r--python/vyos/defaults.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/configquery.py b/python/vyos/configquery.py
index 5b097b312..85fef8777 100644
--- a/python/vyos/configquery.py
+++ b/python/vyos/configquery.py
@@ -88,7 +88,7 @@ class ConfigTreeQuery(GenericConfigQuery):
with open(config_file) as f:
config_string = f.read()
except OSError as err:
- raise ConfigQueryError('No config file available') from err
+ config_string = ''
config_source = ConfigSourceString(running_config_text=config_string,
session_config_text=config_string)
diff --git a/python/vyos/defaults.py b/python/vyos/defaults.py
index db0def8ed..060a0ba03 100644
--- a/python/vyos/defaults.py
+++ b/python/vyos/defaults.py
@@ -22,6 +22,7 @@ directories = {
'data' : '/usr/share/vyos/',
'conf_mode' : f'{base_dir}/conf_mode',
'op_mode' : f'{base_dir}/op_mode',
+ 'services' : f'{base_dir}/services',
'config' : '/opt/vyatta/etc/config',
'current' : '/opt/vyatta/etc/config-migrate/current',
'migrate' : '/opt/vyatta/etc/config-migrate/migrate',