add sbin to PATH to fix testinfra iptables module
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
5773d40b7c
commit
545746b16a
@ -1,4 +1,5 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
import testinfra.utils.ansible_runner
|
||||
|
||||
@ -8,6 +9,8 @@ warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||
|
||||
sys.path.append('/usr/sbin')
|
||||
|
||||
|
||||
def test_iptables_is_installed(host):
|
||||
iptables = host.package("iptables")
|
||||
|
Loading…
Reference in New Issue
Block a user