summaryrefslogtreecommitdiff
path: root/src/migration-scripts/sstp/0-to-1
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-21 11:19:42 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-21 11:19:44 +0100
commit5636e057948edc46b9cd5b1eb87f9cf420204adc (patch)
tree5201ffb3e731aed90cecd5066a0168c431e5299c /src/migration-scripts/sstp/0-to-1
parent3c11f5cd656bd21b15468b158bf55bfe0e0ed96c (diff)
downloadvyos-1x-5636e057948edc46b9cd5b1eb87f9cf420204adc.tar.gz
vyos-1x-5636e057948edc46b9cd5b1eb87f9cf420204adc.zip
sstp: T2008: bugfix migrator for radius options
An if statement was missing to check if there are really additional radius-settings or not.
Diffstat (limited to 'src/migration-scripts/sstp/0-to-1')
-rwxr-xr-xsrc/migration-scripts/sstp/0-to-18
1 files changed, 4 insertions, 4 deletions
diff --git a/src/migration-scripts/sstp/0-to-1 b/src/migration-scripts/sstp/0-to-1
index 1d1bea51f..0e8dd1c4b 100755
--- a/src/migration-scripts/sstp/0-to-1
+++ b/src/migration-scripts/sstp/0-to-1
@@ -69,10 +69,10 @@ else:
# migrate radius options - copy subtree
# thus must happen before migration of the individual RADIUS servers
old_options = new_base + ['authentication', 'radius-settings']
- new_options = new_base + ['authentication', 'radius']
- config.copy(old_options, new_options)
- config.delete(old_options)
-
+ if config.exists(old_options):
+ new_options = new_base + ['authentication', 'radius']
+ config.copy(old_options, new_options)
+ config.delete(old_options)
# migrate radius dynamic author / change of authorisation server
dae_old = new_base + ['authentication', 'radius', 'dae-server']