bundlewrap/bundles/oidentd/metadata.py
Franziska Kunsmann e36a352a42
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles: fix usage of set() vs {}
2021-04-04 10:34:55 +02:00

22 lines
392 B
Python

from bundlewrap.metadata import atomic
defaults = {
'apt': {
'packages': {
'oidentd': {},
},
},
}
@metadata_reactor.provides(
'iptables/port_rules/113',
)
def iptables(metadata):
return {
'iptables': {
'port_rules': {
'113': atomic(metadata.get('oidentd/restrict-to', {'*'})),
},
},
}