diff options
author | John Estabrook <jestabro@sentrium.io> | 2019-09-19 12:51:14 -0500 |
---|---|---|
committer | John Estabrook <jestabro@sentrium.io> | 2019-09-19 12:51:14 -0500 |
commit | 4a2a06f400593107393755777fdd42b57bbaa21b (patch) | |
tree | ebdf4d7af02f1832ab4721ab13d5fc5c0166d0da /python/vyos/configsession.py | |
parent | ff4e98e38b9610467347b216a2e33c5f1fc53e71 (diff) | |
download | vyos-1x-4a2a06f400593107393755777fdd42b57bbaa21b.tar.gz vyos-1x-4a2a06f400593107393755777fdd42b57bbaa21b.zip |
[boot-config-loader] T1622: (bugfix) set gid and write permissions
Set gid and permissions so that vyatta-cfg group has access to the
active config; fix typo in arg len check; reorganize; add log output.
Diffstat (limited to 'python/vyos/configsession.py')
-rw-r--r-- | python/vyos/configsession.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/vyos/configsession.py b/python/vyos/configsession.py index acbdd3d5f..09fae78a1 100644 --- a/python/vyos/configsession.py +++ b/python/vyos/configsession.py @@ -145,7 +145,8 @@ class ConfigSession(object): self.__run_command([COMMENT] + path + value) def commit(self): - self.__run_command([COMMIT]) + out = self.__run_command([COMMIT]) + return out def discard(self): self.__run_command([DISCARD]) @@ -157,4 +158,5 @@ class ConfigSession(object): return config_data def load_config(self, file_path): - self.__run_command(LOAD_CONFIG + [file_path]) + out = self.__run_command(LOAD_CONFIG + [file_path]) + return out |