bundles/basic: use metadata.get()
This commit is contained in:
parent
d364b3c152
commit
a21102724a
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ files = {
|
|||
}
|
||||
|
||||
locale_needs = set()
|
||||
for locale in sorted(node.metadata['locale']['installed']):
|
||||
for locale in sorted(node.metadata.get('locale/installed')):
|
||||
actions[f'ensure_locale_{locale}_is_enabled'] = {
|
||||
'command': f"sed -i '/{locale}/s/^# *//g' /etc/locale.gen",
|
||||
'unless': f"grep -e '^{locale}' /etc/locale.gen",
|
||||
|
|
Loading…
Reference in a new issue