def open_firewalld(service):
 return sequence(([run_from_args(['firewall-cmd', '--reload'])] + [run_from_args((command + [service])) for command in [['firewall-cmd', '--permanent', '--add-service'], ['firewall-cmd', '--add-service']]]))

def open_firewalld ( service ) : return sequence ( ( [ run_from_args ( [ 'firewall-cmd' , '--reload' ] ) ] + [ run_from_args ( ( command + [ service ] ) ) for command in [ [ 'firewall-cmd' , '--permanent' , '--add-service' ] , [ 'firewall-cmd' , '--add-service' ] ] ] ) )
open firewalld port for a service .