From bc36bb5a9db4143696b96ab74eee40539de3541d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 25 Dec 2019 17:51:29 +0100 Subject: time-zone: T1906: migrate to XML/Python The current node.def based implementtion should be migrated from vyatta-cfg-system to vyos-1x. During the migration also provide a migration script which transforms some ole timezones like "Los_Angeles" into a proper IANA assigned timezone which should be "America/Los_Angeles". --- src/migration-scripts/system/11-to-12 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/migration-scripts/system/11-to-12') diff --git a/src/migration-scripts/system/11-to-12 b/src/migration-scripts/system/11-to-12 index 64425e2b9..0c92a0746 100755 --- a/src/migration-scripts/system/11-to-12 +++ b/src/migration-scripts/system/11-to-12 @@ -27,7 +27,7 @@ for host in config.list_nodes(cbase): if re.search(':[0-9]{1,5}$',host): h = re.search('^[a-zA-Z\-0-9\.]+', host).group(0) p = re.sub(':', '', re.search(':[0-9]+$', host).group(0)) - config.set(cbase + [h]) + config.set(cbase + [h]) config.set(cbase + [h, 'port'], value=p) for fac in config.list_nodes(cbase + [host, 'facility']): config.set(cbase + [h, 'facility', fac]) -- cgit v1.2.3