summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-10-21 14:55:34 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-10-21 17:44:16 -0500
commitc6c8c453076a06188d577730f0ab570e8daef5f2 (patch)
tree486e216c3633fe73701e8e5f45f92fc9e6a58718 /src/services
parent8bf1ba34d2fd4ee59390d08be397a850c552fcd2 (diff)
downloadvyos-1x-c6c8c453076a06188d577730f0ab570e8daef5f2.tar.gz
vyos-1x-c6c8c453076a06188d577730f0ab570e8daef5f2.zip
http-api: T3007: use ConfigSession config load script, not backend load
Diffstat (limited to 'src/services')
-rwxr-xr-xsrc/services/vyos-http-api-server2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index d5730d86c..703628558 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -261,7 +261,7 @@ def config_file_op(command):
path = command['file']
except KeyError:
return error(400, "Missing required field \"file\"")
- res = session.load_config(path)
+ res = session.migrate_and_load_config(path)
res = session.commit()
else:
return error(400, "\"{0}\" is not a valid operation".format(op))